projects
/
project
/
uclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
007a17f
)
uclient-fetch: add support for --quiet
author
Felix Fietkau
<
[email protected]
>
Tue, 5 Jul 2016 09:19:38 +0000
(11:19 +0200)
committer
Felix Fietkau
<
[email protected]
>
Tue, 5 Jul 2016 09:19:38 +0000
(11:19 +0200)
Signed-off-by: Felix Fietkau <
[email protected]
>
uclient-fetch.c
patch
|
blob
|
history
diff --git
a/uclient-fetch.c
b/uclient-fetch.c
index 065742eeed3378167b234cb664efb19750af26e0..6b6d2fe9aa16947c0086014c7c6dacd9ff1510fe 100644
(file)
--- 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);
}