diff options
author | José Bollo <jose.bollo@iot.bzh> | 2015-12-10 16:39:05 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2015-12-10 16:39:05 +0100 |
commit | f3d64b7c741677cd28e2a11deed67196cd02b46a (patch) | |
tree | 57b6ee3ca5a206d78a39dbcdae49cac5a75ae59a /src/wgtpkg-sign.c | |
parent | 63f8720a3e610c0dc37bda3138d2e8de98ec1a78 (diff) |
added info retrieval
Change-Id: I6f91b15e87308cf01db4ddafa3c2715c251f5fe5
Diffstat (limited to 'src/wgtpkg-sign.c')
-rw-r--r-- | src/wgtpkg-sign.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wgtpkg-sign.c b/src/wgtpkg-sign.c index cd506fc..c4faf29 100644 --- a/src/wgtpkg-sign.c +++ b/src/wgtpkg-sign.c @@ -26,6 +26,7 @@ #include <sys/stat.h> #include <fcntl.h> +#include "verbose.h" #include "wgtpkg.h" #if !defined(MAXCERT) @@ -96,7 +97,7 @@ int main(int ac, char **av) number = UINT_MAX; keyfile = directory = NULL; for (;;) { - i = getopt_long(ac, av, "hfak:c:d:", options, NULL); + i = getopt_long(ac, av, "hfqvak:c:d:", options, NULL); if (i < 0) break; switch (i) { @@ -112,6 +113,13 @@ int main(int ac, char **av) case 'f': force = 1; continue; case 'a': author = 1; continue; case 'h': usage(); return 0; + case 'q': + if (verbosity) + verbosity--; + break; + case 'v': + verbosity++; + break; case ':': syslog(LOG_ERR, "missing argument"); return 1; |