aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorJason Woodward2005-11-05 17:19:36 +0000
committerJason Woodward2005-11-05 17:19:36 +0000
commit4a89946c736f0cda78511e9990daf459313b457f (patch)
treede5c189b0db5203aea7c19b70780307d02dc2889 /src/main.c
parent088a90ea6eff75a0f206783a15bf08f7ea139f97 (diff)
downloadslapt-get-4a89946c736f0cda78511e9990daf459313b457f.tar.gz
added --prompt|-p option to always prompt (Kanedaaa)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 6ad0730..9a33e76 100644
--- a/src/main.c
+++ b/src/main.c
@@ -46,6 +46,8 @@ int main( int argc, char *argv[] )
{"version", 0, 0, SLAPT_VERSION_OPT},
{"no-prompt", 0, 0, SLAPT_NO_PROMPT_OPT},
{"y", 0, 0, SLAPT_NO_PROMPT_OPT},
+ {"prompt", 0, 0, SLAPT_PROMPT_OPT},
+ {"p", 0, 0, SLAPT_PROMPT_OPT},
{"reinstall", 0, 0, SLAPT_REINSTALL_OPT},
{"ignore-excludes", 0, 0, SLAPT_IGNORE_EXCLUDES_OPT},
{"no-md5", 0, 0, SLAPT_NO_MD5_OPT},
@@ -129,6 +131,9 @@ int main( int argc, char *argv[] )
case SLAPT_NO_PROMPT_OPT: /* auto */
global_config->no_prompt = SLAPT_TRUE;
break;
+ case SLAPT_PROMPT_OPT: /* always prompt */
+ global_config->prompt = SLAPT_TRUE;
+ break;
case SLAPT_REINSTALL_OPT: /* reinstall */
global_config->re_install = SLAPT_TRUE;
break;
@@ -173,6 +178,7 @@ int main( int argc, char *argv[] )
global_config->dist_upgrade = tmp_gc->dist_upgrade;
global_config->simulate = tmp_gc->simulate;
global_config->no_prompt = tmp_gc->no_prompt;
+ global_config->prompt = tmp_gc->prompt;
global_config->re_install = tmp_gc->re_install;
global_config->ignore_excludes = tmp_gc->ignore_excludes;
global_config->no_md5_check = tmp_gc->no_md5_check;
@@ -367,6 +373,7 @@ void usage(void)
printf(" --download-only - %s\n",gettext("only download pkg on install/upgrade"));
printf(" --simulate|-s - %s\n",gettext("show pkgs to be installed/upgraded"));
printf(" --no-prompt|-y - %s\n",gettext("do not prompt during install/upgrade"));
+ printf(" --prompt|-p - %s\n",gettext("always prompt during install/upgrade"));
printf(" --reinstall - %s\n",gettext("re-install the pkg"));
printf(" --ignore-excludes - %s\n",gettext("install/upgrade excludes"));
printf(" --no-md5 - %s\n",gettext("do not perform md5 check sum"));