Bug 990149 - rhn-satellite-activate throws ValueError: ERROR: these arguments make no sense in this context (try --help): ['-']
rhn-satellite-activate throws ValueError: ERROR: these arguments make no sens...
Status: CLOSED DEFERRED
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server (Show other bugs)
unspecified
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Michael Mráka
Red Hat Satellite QA List
:
Depends On:
Blocks: 462714
  Show dependency treegraph
 
Reported: 2013-07-30 09:37 EDT by Jan Hutař
Modified: 2015-05-29 16:10 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-05-29 16:10:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Hutař 2013-07-30 09:37:13 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.