Bug 62234

Summary: --usage shows only some of the command line options
Product: [Retired] Red Hat Linux Reporter: Mihai Ibanescu <mihai.ibanescu>
Component: poptAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-05-15 19:40:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 61758, 61762    
Attachments:
Description Flags
Example source file that displays the odd behaviour of --usage none

Description Mihai Ibanescu 2002-03-28 17:45:17 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020311

Description of problem:
--usage has a weird preference on showing command line options. See attached
test program.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Run the attached program.
	

Actual Results:  [misa@roadrunner py-popt]$ ./t --help
Usage: t [OPTION...]
  --longonly          Descrip
  -u, --longshort     Descrip
  -v=INT              Descrip
  -x                  Descrip

Help options:
  -?, --help          Show this help message
  --usage             Display brief usage message

[misa@roadrunner py-popt]$ ./t --usage
Usage: t [--usage] [--longonly] [-v INT]


Expected Results:  --longshort and -x should have showed up in the usage too.

Additional info:

$ rpm -q popt
popt-1.6.4-7x

Comment 1 Mihai Ibanescu 2002-03-28 17:46:13 UTC
Created attachment 51193 [details]
Example source file that displays the odd behaviour of --usage

Comment 2 Jeff Johnson 2002-07-25 18:24:31 UTC
In popt-1.7-0.56, the test program should (now) display:

Usage: t62234 [-?|--help] [--usage] [--longonly] [-u|--longshort] [-v INT]
        [-x]