rosnode: added -a/--all aliases to make commands consistent per tfoote's comments

This commit is contained in:
Ken Conley 2009-12-31 21:13:52 +00:00
parent e286faa98b
commit 93886b294b
1 changed files with 3 additions and 3 deletions

View File

@ -495,7 +495,7 @@ def _rosnode_cmd_list(argv):
dest="list_uri", default=False,
action="store_true",
help="list XML-RPC URIs")
parser.add_option("-a",
parser.add_option("-a","--all",
dest="list_all", default=False,
action="store_true",
help="list all information")
@ -544,7 +544,7 @@ def _rosnode_cmd_kill(argv):
"""
args = argv[2:]
parser = OptionParser(usage="usage: %prog kill [node]...", prog=NAME)
parser.add_option("-a",
parser.add_option("-a","--all",
dest="kill_all", default=False,
action="store_true",
help="kill all nodes")
@ -614,7 +614,7 @@ def _rosnode_cmd_ping(argv):
"""
args = argv[2:]
parser = OptionParser(usage="usage: %prog ping [options] <node>", prog=NAME)
parser.add_option("--all",
parser.add_option("--all", "-a",
dest="ping_all", default=False,
action="store_true",
help="ping all nodes")