Bug 164791

Summary: system-config-date --help fails poorly
Product: Red Hat Enterprise Linux 4 Reporter: Chester Hosey <chester.hosey>
Component: system-config-dateAssignee: Nils Philippsen <nphilipp>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: RHEL4U3NAK
Fixed In Version: RHBA-2006-0366 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-05-03 21:27:47 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: 187538    

Description Chester Hosey 2005-08-01 14:26:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Description of problem:
No help exists via a --help option. Attempting to use --help causes Python to output a stack dump. If called by a non-root user, --help asks for the root password before dying poorly.

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


How reproducible:
Always

Steps to Reproduce:
1. /usr/bin/system-config-time --help
2. Stack trace

Actual Results:  Traceback (most recent call last):
  File "/usr/share/system-config-date/system-config-date.py", line 39, in ?
    opts, kbdtype = getopt.getopt(sys.argv[1:], "d:h", ["page="])
  File "/usr/lib/python2.3/getopt.py", line 89, in getopt
    opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
  File "/usr/lib/python2.3/getopt.py", line 153, in do_longs
    has_arg, opt = long_has_args(opt, longopts)
  File "/usr/lib/python2.3/getopt.py", line 170, in long_has_args
    raise GetoptError('option --%s not recognized' % opt, opt)
getopt.GetoptError: option --help not recognized

Expected Results:  Either an explanatory message showing a list of options, or a note that no options are accepted.

Additional info:

Comment 1 Nils Philippsen 2005-08-03 12:25:00 UTC
Implemented --help, catch unrecognized options better in CVS.

Comment 11 Red Hat Bugzilla 2006-05-03 21:27:48 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0366.html