mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +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"
|
||||
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):
|
||||
def __init__(self, option_strings, dest=argparse.SUPPRESS, default=argparse.SUPPRESS, help=None):
|
||||
super(PrintUsage, self).__init__( option_strings=option_strings, dest=dest,
|
||||
|
@ -146,7 +142,7 @@ class PrintUsage(argparse.Action):
|
|||
parser.exit()
|
||||
|
||||
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)
|
||||
parser.add_argument("-d", "--debug", dest="debug",
|
||||
action="store_true",
|
||||
|
|
Loading…
Reference in a new issue