mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
validate:launcher: Use RawTextHelpFormatter to (not) format user help
This commit is contained in:
parent
f10ff2b610
commit
b9389c85c2
1 changed files with 1 additions and 5 deletions
|
@ -132,10 +132,6 @@ QA_ASSETS = "gst-qa-assets"
|
||||||
MEDIAS_FOLDER = "medias"
|
MEDIAS_FOLDER = "medias"
|
||||||
DEFAULT_GST_QA_ASSETS_REPO = "git://people.freedesktop.org/~tsaunier/gst-qa-assets/"
|
DEFAULT_GST_QA_ASSETS_REPO = "git://people.freedesktop.org/~tsaunier/gst-qa-assets/"
|
||||||
|
|
||||||
class Formatter(argparse.RawDescriptionHelpFormatter):
|
|
||||||
def _format_usage(self, usage, actions, groups, prefix):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class PrintUsage(argparse.Action):
|
class PrintUsage(argparse.Action):
|
||||||
def __init__(self, option_strings, dest=argparse.SUPPRESS, default=argparse.SUPPRESS, help=None):
|
def __init__(self, option_strings, dest=argparse.SUPPRESS, default=argparse.SUPPRESS, help=None):
|
||||||
super(PrintUsage, self).__init__( option_strings=option_strings, dest=dest,
|
super(PrintUsage, self).__init__( option_strings=option_strings, dest=dest,
|
||||||
|
@ -146,7 +142,7 @@ class PrintUsage(argparse.Action):
|
||||||
parser.exit()
|
parser.exit()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(formatter_class=Formatter, prog='gst-validate-launcher',
|
parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, prog='gst-validate-launcher',
|
||||||
description=HELP)
|
description=HELP)
|
||||||
parser.add_argument("-d", "--debug", dest="debug",
|
parser.add_argument("-d", "--debug", dest="debug",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
|
Loading…
Reference in a new issue