[Rpm-maint] [rpm-software-management/rpm] command line usage: option -q is not mentioned (#1473)

Christopher Yeleighton notifications at github.com
Thu Mar 18 13:23:01 UTC 2021


> There just isn't the obvious link between `--query` and the other options which only make sense when `--query` is specified. For example, you can't just run `rpm -l` or `rpm -s`.

Tru dat.
How about the following approach:
````
  -q, --query                        retrieve information about packages, in particular:
````
> 
> That being said, the automatic help output has its limitations, some of which are hard limitations of `popt` while others are just the result of the way we structure and feed the data to popt. So by all means, patches are welcome :)



> 
> > This looks like "the WTF approach" to me.
> 
> Care to elaborate?

The options are like a hierarchical menu; the menu header should be kept together with the commands in the corresponding submenu, otherwise the users will have to scroll to see the rest of the command and they will get annoyed and tired.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1473#issuecomment-801922138
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210318/b05679dc/attachment-0001.html>


More information about the Rpm-maint mailing list