This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=e0524ee32d7ca61817676f617359fda72362f7cb

commit e0524ee32d7ca61817676f617359fda72362f7cb (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Apr 16 18:48:52 2023 +0200

    dpkg: Clarify that commands can take package-name or --pending in error 
message
    
    These options which can take a package name specifier, can also take a
    --pending option. Make the error more clear about this.
    
    Closses: #1034466
---
 src/main/packages.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/packages.c b/src/main/packages.c
index 4fe9d1617..8d859a860 100644
--- a/src/main/packages.c
+++ b/src/main/packages.c
@@ -154,7 +154,8 @@ packages(const char *const *argv)
     enqueue_pending();
   } else {
     if (!*argv)
-      badusage(_("--%s needs at least one package name argument"), 
cipaction->olong);
+      badusage(_("--%s (without --pending) needs at least one package name 
argument"),
+               cipaction->olong);
 
     enqueue_specified(argv);
   }

-- 
Dpkg.Org's dpkg

Reply via email to