mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00: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:
@@ -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])
|
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()
|
self.set_action()
|
||||||
|
|
||||||
# options specific to actions
|
# options specific to actions
|
||||||
|
|||||||
@@ -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])
|
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()
|
self.set_action()
|
||||||
|
|
||||||
# options specific to self.actions
|
# options specific to self.actions
|
||||||
|
|||||||
Reference in New Issue
Block a user