[pacman-dev] [PATCH 4/4] CLI args: update --help and manpage

Allan McRae allan at archlinux.org
Sun Oct 10 21:30:25 EDT 2010


On 11/10/10 05:06, Xavier Chantry wrote:
> The three parts (help, manpage and code) are now organized in the same
> way and much easier to compare :
> - specific options
> - install/upgrade options for -S and -U
> - transaction options for -S -R and -U
> - global options
>
> After this re-organization, it was easy to update and sync the three
> components together. Duplication is also avoided.
>
> Signed-off-by: Xavier Chantry<chantry.xavier at gmail.com>


This had actually been on my TODO list for a while so it is good to see 
it fixed.  Overall, I think these look good.  One small point:

 > ./src/pacman/pacman -D --help
usage:  lt-pacman {-D --database} <options> <package(s)>
options:
       --asdeps         mark packages as non-explicitly installed
       --asexplicit     mark packages as explicitly installed
   -b, --dbpath <path>  set an alternate database location
   -r, --root <path>    set an alternate installation root
   -v, --verbose        be verbose
       --arch <arch>    set an alternate architecture
       --cachedir <dir> set an alternate package cache location
       --config <path>  set an alternate configuration file
       --debug          display debug messages
       --logfile <path> set an alternate log file
       --noconfirm      do not ask for any confirmation

On my TODO list, I had also had removing --arch and --cachedir from -D 
and -Q as they are useless options there as far as I can tell.  And 
--cachedir from -U.


Slightly related, I wonder if we can shorten the description of "-k, 
--dbonly" and "--print" so they do not loop on an 80 width terminal.  Or 
maybe add some line wrapping.

Allan


More information about the pacman-dev mailing list