RPM Community Forums

Mailing List Message of <popt-devel>

Breakage with --help

From: Jeff Johnson <n3npq@mac.com>
Date: Wed 02 Sep 2009 - 18:26:31 CEST
Message-id: <283AA0DC-4E23-4A70-8ECD-C209D12F9432@mac.com>
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  
        cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file ...  

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
Received on Wed Sep 2 18:27:20 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.