From: Larry Peterson Date: Tue, 3 Mar 2009 16:39:06 +0000 (+0000) Subject: eliminated 'name' argument from add/update X-Git-Tag: sfa-0.9-0@14641~621 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=cf9f514821bbd91f0bd34af2b7a1a9616386306f eliminated 'name' argument from add/update --- diff --git a/cmdline/sfi.py b/cmdline/sfi.py index 9a81ce40..f8f8c566 100755 --- a/cmdline/sfi.py +++ b/cmdline/sfi.py @@ -225,8 +225,8 @@ def create_cmd_parser(command, additional_cmdargs = None): cmdargs = {"list": "name", "show": "name", "remove": "name", - "add": "name record", - "update": "name record", + "add": "record", + "update": "record", "nodes": "[name]", "slices": "", "resources": "name", @@ -252,8 +252,8 @@ def create_cmd_parser(command, additional_cmdargs = None): % (command, cmdargs[command])) if command in ("nodes", "resources"): parser.add_option("-f", "--format", dest="format",type="choice", - help="display format (dns|ip|hrn|rspec)",default="rspec", - choices=("dns","ip","hrn","rspec")) + help="display format (dns|ip|rspec)",default="rspec", + choices=("dns","ip","rspec")) if command in ("list", "show", "remove"): parser.add_option("-t", "--type", dest="type",type="choice", help="type filter (user|slice|sa|ma|node|aggregate)",