mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-23 14:48:53 +02:00
Change the help output to determine executable name from the command-line arguments
This commit is contained in:
@@ -86,7 +86,6 @@ class Command:
|
|||||||
self.parser.set_defaults(_selected_command=self)
|
self.parser.set_defaults(_selected_command=self)
|
||||||
else:
|
else:
|
||||||
self.parser = argparse.ArgumentParser(
|
self.parser = argparse.ArgumentParser(
|
||||||
prog=self.name,
|
|
||||||
description=self.get_description(),
|
description=self.get_description(),
|
||||||
formatter_class=cmdln.HelpFormatter,
|
formatter_class=cmdln.HelpFormatter,
|
||||||
usage="%(prog)s [global opts] <command> [--help] [opts] [args]",
|
usage="%(prog)s [global opts] <command> [--help] [opts] [args]",
|
||||||
|
Reference in New Issue
Block a user