summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-11-01 20:28:25 +0200
committerTimo Teräs <timo.teras@iki.fi>2014-11-01 20:29:38 +0200
commitb80aba0b5a687436a5577bbd81e4eb8fb56298a8 (patch)
treeeb90ef6cf47af7854f666b05907b19f252bc1ac0
parent4f823f2a50646d64c506ad8b28ce7e672a87d2ec (diff)
move --simulate to commit options group and alias -s for it
-rw-r--r--src/apk.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/apk.c b/src/apk.c
index 5c333d2..c0a0871 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -109,9 +109,6 @@ static int option_parse_global(void *ctx, struct apk_db_options *dbopts, int opt
case 0x103:
apk_flags |= APK_ALLOW_UNTRUSTED;
break;
- case 0x104:
- apk_flags |= APK_SIMULATE;
- break;
case 0x106:
apk_flags |= APK_PURGE;
break;
@@ -162,8 +159,6 @@ static const struct apk_option options_global[] = {
{ 0x106, "purge", "Delete also modified configuration files (pkg removal) "
"and uninstalled packages from cache (cache clean)" },
{ 0x103, "allow-untrusted", "Install packages with untrusted signature or no signature" },
- { 0x104, "simulate", "Show what would be done without actually "
- "doing it" },
{ 0x105, "wait", "Wait for TIME seconds to get an exclusive "
"repository lock before failing",
required_argument, "TIME" },
@@ -192,6 +187,9 @@ const struct apk_option_group optgroup_global = {
static int option_parse_commit(void *ctx, struct apk_db_options *dbopts, int optch, const char *optarg)
{
switch (optch) {
+ case 's':
+ apk_flags |= APK_SIMULATE;
+ break;
case 0x102:
apk_flags |= APK_CLEAN_PROTECTED;
break;
@@ -208,6 +206,7 @@ static int option_parse_commit(void *ctx, struct apk_db_options *dbopts, int opt
}
static const struct apk_option options_commit[] = {
+ { 's', "simulate", "Show what would be done without actually doing it" },
{ 0x102, "clean-protected", "Do not create .apk-new files in configuration dirs" },
{ 0x111, "overlay-from-stdin", "Read list of overlay files from stdin" },
{ 0x113, "no-scripts", "Do not execute any scripts" },