Changeset d15522f for fedd


Ignore:
Timestamp:
Jul 28, 2009 11:09:49 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
bb39689
Parents:
46e4682
Message:

recognize a single --help

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_client.py

    r46e4682 rd15522f  
    15031503    operation()
    15041504else:
    1505     sys.exit("Bad command: %s.  Valid ones are: %s" % \
    1506             (sys.argv[1], ", ".join(cmds.keys())))
    1507 
     1505    if sys.argv[1] == '--help':
     1506        sys.exit(\
     1507'''Only context sensitive help is available.  For one of the commands:
     1508
     1509%s
     1510
     1511type
     1512  %s command --help
     1513
     1514to get help, e.g., %s create --help
     1515''' % (", ".join(cmds.keys()), sys.argv[0], sys.argv[0]))
     1516    else:
     1517        sys.exit("Bad command: %s.  Valid ones are: %s" % \
     1518                (sys.argv[1], ", ".join(cmds.keys())))
     1519
Note: See TracChangeset for help on using the changeset viewer.