summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-07-05 11:19:38 +0200
committerFelix Fietkau <nbd@nbd.name>2016-07-05 11:19:38 +0200
commit6b89c6ae65d2a1ca34f2d874773f2f6fb4ac59ff (patch)
tree751c17526bd14f672f3243c29c58ba30aea58c47
parent007a17f894dd5985165395a6fe7348256cb60a8b (diff)
downloaduclient-6b89c6ae65d2a1ca34f2d874773f2f6fb4ac59ff.tar.gz
uclient-fetch: add support for --quiet
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--uclient-fetch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/uclient-fetch.c b/uclient-fetch.c
index 065742e..6b6d2fe 100644
--- a/uclient-fetch.c
+++ b/uclient-fetch.c
@@ -503,6 +503,7 @@ enum {
L_CONTINUE,
L_PROXY,
L_NO_PROXY,
+ L_QUIET,
};
static const struct option longopts[] = {
@@ -517,6 +518,7 @@ static const struct option longopts[] = {
[L_CONTINUE] = { "continue", no_argument },
[L_PROXY] = { "proxy", required_argument },
[L_NO_PROXY] = { "no-proxy", no_argument },
+ [L_QUIET] = { "quiet", no_argument },
{}
};
@@ -584,6 +586,9 @@ int main(int argc, char **argv)
case L_NO_PROXY:
proxy = false;
break;
+ case L_QUIET:
+ quiet = true;
+ break;
default:
return usage(progname);
}