I just noticed this flaw while teaching FreeBSD cp(1) to use popt:

 LANG=C ./cp --help
Usage: lt-cp [OPTION...]
-H -L - P -R -a, --archive -f, --force -i, --interactive -l, -- link -n, --noclobber -p, --preserve - r -v, --verbose
Help options:
  -?, --help            Show this help message
      --usage           Display brief usage message

Usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file ... target_directory


The popt table looks like this (i.e. "" for description):

...
  { NULL,'H', POPT_ARG_NONE,            NULL, (int)'H',
        N_(""), NULL },
...

Somebody make sure I fix this flaw please.

73 de Jeff
______________________________________________________________________
POPT Library                                           http://rpm5.org
Developer Communication List                       popt-devel@rpm5.org

Reply via email to