Juan Hernandez has submitted this change and it was merged.
Change subject: cli: Accept intermixed arguments and options
......................................................................
cli: Accept intermixed arguments and options
Currently the syntax of a command requires all the arguments to appear
before all the options. This complicates things when the value of an
option is required by the autocompletion mechanism in order to decide
which are the acceptable arguments. This patch changes the parsing rules
so that arguments and options can be freely intermixed.
Change-Id: I8c1f6982e7beddb17a4668f5719294a8aaae3c2e
Bug-Url:
https://bugzilla.redhat.com/1047513
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
---
M src/cli/context.py
M src/cli/parser.py
2 files changed, 35 insertions(+), 31 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/22866
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I8c1f6982e7beddb17a4668f5719294a8aaae3c2e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-cli
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern(a)redhat.com>