Bug 990149

Summary: rhn-satellite-activate throws ValueError: ERROR: these arguments make no sense in this context (try --help): ['-']
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-29 20:10:18 UTC Type: Bug
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: 462714    

Description Jan Hutař 2013-07-30 13:37:13 UTC
Description of problem:
When you run `rhn-satellite-activate -` by mistake, it produces traceback instead of nice error message.


Version-Release number of selected component (if applicable):
spacewalk-backend-tools-2.0.3-3.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. # rhn-satellite-activate -


Actual results:
ERROR: unhandled exception occurred:
Traceback (most recent call last):
  File "/usr/bin/rhn-satellite-activate", line 42, in <module>
    sys.exit(abs(mod.main() or 0))
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/rhn_satellite_activate.py", line 553, in main
    options = processCommandline()
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/rhn_satellite_activate.py", line 475, in processCommandline
    raise ValueError(msg)
ValueError: ERROR: these arguments make no sense in this context (try --help): ['-']


Expected results:
Something like this:

Usage: rhn-satellite-activate [options]

rhn-satellite-activate: ERROR: these arguments make no sense in this context (try --help): ['-']


Additional info:
Sure, this is really not important.