1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Revert "Show version without supplying a dummy action"

This reverts commit 11b55be5bb.
Parsing before action will fail if one of the action specific options is used
As per issue #13743
This commit is contained in:
Brian Coca 2016-01-07 08:27:13 -05:00
parent d26d76ea58
commit eb4ab5fa2a
2 changed files with 2 additions and 8 deletions

View file

@ -50,7 +50,7 @@ class GalaxyCLI(CLI):
SKIP_INFO_KEYS = ("name", "description", "readme_html", "related", "summary_fields", "average_aw_composite", "average_aw_score", "url" )
VALID_ACTIONS = ("delete", "import", "info", "init", "install", "list", "login", "remove", "search", "setup")
def __init__(self, args):
self.api = None
self.galaxy = None
@ -64,9 +64,6 @@ class GalaxyCLI(CLI):
epilog = "\nSee '%s <command> --help' for more information on a specific command.\n\n" % os.path.basename(sys.argv[0])
)
# Workaround for #12004: show version without supplying a dummy action
self.parser.parse_args()
self.set_action()
# options specific to actions
@ -144,7 +141,7 @@ class GalaxyCLI(CLI):
return True
def run(self):
super(GalaxyCLI, self).run()
# if not offline, get connect to galaxy api

View file

@ -53,9 +53,6 @@ class VaultCLI(CLI):
epilog = "\nSee '%s <command> --help' for more information on a specific command.\n\n" % os.path.basename(sys.argv[0])
)
# Workaround for #12004: show version without supplying a dummy action
self.parser.parse_args()
self.set_action()
# options specific to self.actions