Show version without supplying a dummy action

fixes #12004
parsing x2 does not seem to break anything
pull/12020/merge
muffl0n 10 years ago committed by Brian Coca
parent f7143d09a6
commit 11b55be5bb

@ -64,6 +64,9 @@ 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,6 +53,9 @@ 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

Loading…
Cancel
Save