diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-07 21:45:11 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-07 21:45:11 +0200 |
commit | 052fbe3f86eaab1940f25824705d809cd9af59e5 (patch) | |
tree | 248d8da56e8660db2aa09a17bd52d25e0256cf29 /src/apk.c | |
parent | c7ffc96a16c6963fe0a07be7ee75e8f1f7426882 (diff) | |
download | apk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.tar.gz apk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.tar.bz2 apk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.tar.xz apk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.zip |
various: make fancy progress bar and update todo
Diffstat (limited to 'src/apk.c')
-rw-r--r-- | src/apk.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -22,7 +22,7 @@ const char *apk_root = "/"; const char *apk_repository = NULL; -int apk_quiet = 0; +int apk_quiet = 0, apk_progress = 0; int apk_cwd_fd; void apk_log(const char *prefix, const char *format, ...) @@ -73,6 +73,7 @@ int main(int argc, char **argv) {"root", required_argument, NULL, 'Q' }, {"repository", required_argument, NULL, 'X' }, {"quiet", no_argument, NULL, 'q' }, + {"progress", no_argument, NULL, 0x100 }, {0, 0, 0, 0}, }; struct apk_applet *applet = NULL; @@ -103,6 +104,9 @@ int main(int argc, char **argv) case 'q': apk_quiet = 1; break; + case 0x100: + apk_progress = 1; + break; default: return usage(); } |