summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/apk.c b/src/apk.c
index 53d6992..dbc2044 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -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();
}