Michael Pasternak has uploaded a new change for review. Change subject: cli: detailed command syntax in help ......................................................................
cli: detailed command syntax in help Change-Id: I42c2c4f1d448cfd380ffbb5917167f1813bdfdbc Signed-off-by: Michael Pasternak <[email protected]> --- M src/ovirtcli/command/action.py M src/ovirtcli/command/add.py M src/ovirtcli/command/connect.py M src/ovirtcli/command/help.py M src/ovirtcli/command/list.py M src/ovirtcli/command/remove.py M src/ovirtcli/command/show.py M src/ovirtcli/command/update.py 8 files changed, 17 insertions(+), 17 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-cli refs/changes/63/10963/1 diff --git a/src/ovirtcli/command/action.py b/src/ovirtcli/command/action.py index 993de33..4b3ff67 100644 --- a/src/ovirtcli/command/action.py +++ b/src/ovirtcli/command/action.py @@ -26,14 +26,14 @@ name = 'action' description = 'execute an action on an object' - usage = 'action <type> <action> <id> [options]' + usage = 'action <type> <id> <action> [parent identifiers] [command options]' args_check = 3 valid_options = [ ('*', str) ] helptext0 = """\ == Usage == - action <type> <id> <action> [base identifiers] [attribute options] + action <type> <id> <action> [parent identifiers] [command options] == Description == @@ -86,7 +86,7 @@ helptext1 = """\ == Usage == - action <type> <id> <action> [object identifiers] [attribute options] + action <type> <id> <action> [parent identifiers] [command options] == Description == diff --git a/src/ovirtcli/command/add.py b/src/ovirtcli/command/add.py index 38df4e7..ddc6330 100644 --- a/src/ovirtcli/command/add.py +++ b/src/ovirtcli/command/add.py @@ -29,7 +29,7 @@ helptext0 = """\ == Usage == - add <type> [base identifiers] [attribute options] + add <type> [parent identifiers] [command options] == Description == @@ -96,7 +96,7 @@ helptext1 = """\ == Usage == - add <type> [base identifiers] [attribute options] + add <type> [parent identifiers] [command options] == Description == diff --git a/src/ovirtcli/command/connect.py b/src/ovirtcli/command/connect.py index 32cc84b..0f6d3be 100644 --- a/src/ovirtcli/command/connect.py +++ b/src/ovirtcli/command/connect.py @@ -33,7 +33,7 @@ == Usage == connect - connect <url> <username> <password> + connect <url> <username> <password> [command options] == Description == diff --git a/src/ovirtcli/command/help.py b/src/ovirtcli/command/help.py index 07ac93c..9f7d94c 100644 --- a/src/ovirtcli/command/help.py +++ b/src/ovirtcli/command/help.py @@ -31,7 +31,7 @@ == Usage == help - help <command> [arguments] [options] + help <command> <command attributes> [command options] == Description == @@ -58,7 +58,7 @@ The general format for each command is: - <command> [arguments] [options] + help <command> <command attributes> [command options] If arguments contain spaces or other reserved characters, you need to quote them. You can use single (') and double (") quotes for this. The diff --git a/src/ovirtcli/command/list.py b/src/ovirtcli/command/list.py index a3ab0e7..e7fd971 100644 --- a/src/ovirtcli/command/list.py +++ b/src/ovirtcli/command/list.py @@ -17,7 +17,7 @@ from ovirtcli.command.command import OvirtCommand from ovirtcli.utils.typehelper import TypeHelper -#from ovirtsdk.infrastructure import brokers +# from ovirtsdk.infrastructure import brokers from ovirtcli.command.show import ShowCommand class ListCommand(OvirtCommand): @@ -33,7 +33,7 @@ helptext = """\ == Usage == - list <type> [search]... [object identifiers] + list <type> [parent identifiers] [command options] == Description == diff --git a/src/ovirtcli/command/remove.py b/src/ovirtcli/command/remove.py index 7c01c78..82faf09 100644 --- a/src/ovirtcli/command/remove.py +++ b/src/ovirtcli/command/remove.py @@ -31,7 +31,7 @@ helptext = """\ == Usage == - remove <type> <id> [object identifiers] [attribute options] + remove <type> <id> [parent identifiers] [command options] == Description == diff --git a/src/ovirtcli/command/show.py b/src/ovirtcli/command/show.py index 5f6a906..4bcca94 100644 --- a/src/ovirtcli/command/show.py +++ b/src/ovirtcli/command/show.py @@ -30,7 +30,7 @@ helptext = """\ == Usage == - show <type> <id> [object identifiers] + show <type> <id> [parent identifiers] [command options] == Description == @@ -117,10 +117,10 @@ args = self.arguments opts = self.options - #Raise an error if object identifier xxx is not specified #855750 - #e.g: - #show vm xxx - #show disk xxx --vm-identifier yyy + # Raise an error if object identifier xxx is not specified #855750 + # e.g: + # show vm xxx + # show disk xxx --vm-identifier yyy if len(args) < 2 and (len(opts) == 0 or (len(opts) == 1 and diff --git a/src/ovirtcli/command/update.py b/src/ovirtcli/command/update.py index 11c5644..712fbd0 100644 --- a/src/ovirtcli/command/update.py +++ b/src/ovirtcli/command/update.py @@ -30,7 +30,7 @@ helptext = """\ == Usage == - update <type> <id> [base identifiers] [attribute options] + update <type> <id> [parent identifiers] [command options] == Description == -- To view, visit http://gerrit.ovirt.org/10963 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I42c2c4f1d448cfd380ffbb5917167f1813bdfdbc Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-cli Gerrit-Branch: master Gerrit-Owner: Michael Pasternak <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
