diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c index 6e15f3fd3..65c36268c 100644 --- a/src/main.c +++ b/src/main.c @@ -498,8 +498,8 @@ arch_add(const char *const *argv) struct dpkg_arch *arch; const char *archname = *argv++; - if (archname == NULL) - badusage(_("--%s takes one argument"), cipaction->olong); + if (archname == NULL || *argv) + badusage(_("--%s takes exactly one argument"), cipaction->olong); dpkg_arch_load_list(); @@ -528,8 +528,8 @@ arch_remove(const char *const *argv) struct pkgiterator *iter; struct pkginfo *pkg; - if (archname == NULL) - badusage(_("--%s takes one argument"), cipaction->olong); + if (archname == NULL || *argv) + badusage(_("--%s takes exactly one argument"), cipaction->olong); modstatdb_open(msdbrw_readonly); |