summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-01-27 16:06:05 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-01-27 16:06:05 +0100
commit470221bb9975902d68dbeb068f394b77d1b0af46 (patch)
tree15435baf9a88288db0dd33a75f0cba9d48cf743e /cmdline
parent5810683948b6e46223db4e873160b01dd5ad6aac (diff)
cmdline/apt-cdrom.cc: add help, fix duplicated option
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-cdrom.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc
index 988a58f20..0c9aab28c 100644
--- a/cmdline/apt-cdrom.cc
+++ b/cmdline/apt-cdrom.cc
@@ -217,6 +217,7 @@ int ShowHelp()
" -m No mounting\n"
" -f Fast mode, don't check package files\n"
" -a Thorough scan mode\n"
+ " --auto-detect Auto detect drive and mount point\n"
" -c=? Read this configuration file\n"
" -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp\n"
"See fstab(5)\n";
@@ -227,7 +228,7 @@ int main(int argc,const char *argv[]) /*{{{*/
{
CommandLine::Args Args[] = {
{'h',"help","help",0},
- {'a',"auto-detect","Acquire::cdrom::AutoDetect",0},
+ { 0,"auto-detect","Acquire::cdrom::AutoDetect",0},
{'v',"version","version",0},
{'d',"cdrom","Acquire::cdrom::mount",CommandLine::HasArg},
{'r',"rename","APT::CDROM::Rename",0},