Home
last modified time | relevance | path

Searched refs:argparse (Results 1 – 25 of 264) sorted by relevance

1234567891011

/openbmc/linux/tools/net/ynl/
H A Dethtool.py4 import argparse
123 parser = argparse.ArgumentParser(description='ethtool wannabe')
124 parser.add_argument('--json', action=argparse.BooleanOptionalAction)
125 parser.add_argument('--show-priv-flags', action=argparse.BooleanOptionalAction)
126 parser.add_argument('--set-priv-flags', action=argparse.BooleanOptionalAction)
127 parser.add_argument('--show-eee', action=argparse.BooleanOptionalAction)
128 parser.add_argument('--set-eee', action=argparse.BooleanOptionalAction)
129 parser.add_argument('-a', '--show-pause', action=argparse.BooleanOptionalAction)
130 parser.add_argument('-A', '--set-pause', action=argparse.BooleanOptionalAction)
131 parser.add_argument('-c', '--show-coalesce', action=argparse.BooleanOptionalAction)
[all …]
/openbmc/qemu/python/qemu/utils/
H A Dqom.py33 import argparse
71 def configure_parser(cls, parser: argparse.ArgumentParser) -> None:
81 def __init__(self, args: argparse.Namespace):
118 def configure_parser(cls, parser: argparse.ArgumentParser) -> None:
122 def __init__(self, args: argparse.Namespace):
166 def configure_parser(cls, parser: argparse.ArgumentParser) -> None:
175 def __init__(self, args: argparse.Namespace):
212 def configure_parser(cls, parser: argparse.ArgumentParser) -> None:
223 def __init__(self, args: argparse.Namespace):
254 parser = argparse.ArgumentParser(
H A Dqom_common.py18 import argparse
80 def __init__(self, args: argparse.Namespace):
100 def configure_parser(cls, parser: argparse.ArgumentParser) -> None:
118 def add_path_prop_arg(cls, parser: argparse.ArgumentParser) -> None:
151 args: argparse.Namespace
172 parser = argparse.ArgumentParser(description=cls.help)
/openbmc/qemu/scripts/
H A Dqemu-trace-stap21 import argparse
119 parser = argparse.ArgumentParser(description="QEMU SystemTap trace tool")
128 formatter_class=argparse.RawDescriptionHelpFormatter,
144 nargs=argparse.REMAINDER)
147 formatter_class=argparse.RawDescriptionHelpFormatter,
161 nargs=argparse.REMAINDER)
/openbmc/linux/tools/hv/
H A Dvmbus_testing18 import argparse
20 from argparse import RawDescriptionHelpFormatter
21 from argparse import RawTextHelpFormatter
272 parser = argparse.ArgumentParser(prog = "vmbus_testing",usage ="\n"
294 path_parser = argparse.ArgumentParser(add_help=False)
298 state_parser = argparse.ArgumentParser(add_help=False)
368 raise argparse.ArgumentTypeError(str(err))
372 raise argparse.ArgumentTypeError(message)
/openbmc/qemu/scripts/codeconverter/
H A Dconverter.py13 import argparse
29 def process_all_files(parser: argparse.ArgumentParser, args: argparse.Namespace) -> None:
90 p = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter)
/openbmc/linux/tools/verification/dot2/
H A Ddot2k13 import argparse
19 import argparse
21 parser = argparse.ArgumentParser(description='transform .dot file into kernel rv monitor')
H A Ddot2c18 import argparse
21 parser = argparse.ArgumentParser(description='dot2c: converts a .dot file into a C structure')
/openbmc/openbmc/poky/scripts/lib/
H A Dargparse_oe.py8 import argparse
17 class ArgumentParser(argparse.ArgumentParser):
79 if action.dest == argparse.SUPPRESS:
93 if isinstance(action, argparse._SubParsersAction):
140 class OeHelpFormatter(argparse.HelpFormatter):
180 raise argparse.ArgumentTypeError(
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/
H A Ddump-gerrit.py3 import argparse
11 def __init__(self, parser: argparse._SubParsersAction) -> None:
29 def run(self, args: argparse.Namespace) -> int:
H A Dreport.py3 import argparse
9 def __init__(self, parser: argparse._SubParsersAction) -> None:
14 def run(self, args: argparse.Namespace) -> int:
H A Danalyze-commits.py3 import argparse
16 def __init__(self, parser: argparse._SubParsersAction) -> None:
36 def run(self, args: argparse.Namespace) -> int:
/openbmc/linux/tools/testing/kunit/
H A Dkunit.py10 import argparse
308 def add_common_opts(parser: argparse.ArgumentParser) -> None:
359 def add_build_opts(parser: argparse.ArgumentParser) -> None:
365 def add_exec_opts(parser: argparse.ArgumentParser) -> None:
406 def add_parse_opts(parser: argparse.ArgumentParser) -> None:
418 def tree_from_args(cli_args: argparse.Namespace) -> kunit_kernel.LinuxSourceTree:
441 def run_handler(cli_args: argparse.Namespace) -> None:
464 def config_handler(cli_args: argparse.Namespace) -> None:
480 def build_handler(cli_args: argparse.Namespace) -> None:
493 def exec_handler(cli_args: argparse.Namespace) -> None:
[all …]
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/
H A Dpython3-argh_0.31.3.bb1 SUMMARY = "An unobtrusive argparse wrapper with natural syntax"
3 'argh!' while struggling with the API of argparse? Don't like the complexity \
10 Argh is a smart wrapper for argparse. Argparse is a very powerful \
/openbmc/qemu/scripts/simplebench/
H A Dbench-backup.py21 import argparse
166 class ExtendAction(argparse.Action):
174 p = argparse.ArgumentParser('Backup benchmark', epilog='''
184 formatter_class=argparse.RawTextHelpFormatter)
220 p.add_argument('--initial-run', action=argparse.BooleanOptionalAction,
/openbmc/openbmc-build-scripts/scripts/
H A Dgenerate-html-index.py9 import argparse
103 parser = argparse.ArgumentParser(
109 formatter_class=argparse.ArgumentDefaultsHelpFormatter,
/openbmc/bmcweb/scripts/
H A Dwebsocket_test.py6 import argparse
14 parser = argparse.ArgumentParser()
21 "--ssl", default=True, action=argparse.BooleanOptionalAction
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/tc/
H A Dgenerate_metadata.py6 import argparse
46 parser = argparse.ArgumentParser()
61 …raise argparse.ArgumentError(None, 'Arguments img_type_uuids and location_uuids must have the same…
/openbmc/openbmc/poky/scripts/
H A Dwic22 import argparse
88 class RootfsArgAction(argparse.Action):
384 raise argparse.ArgumentTypeError(err)
397 raise argparse.ArgumentTypeError("partition number is not specified")
429 raise argparse.ArgumentTypeError("Incorrect rule format: %s" % rule)
432 raise argparse.ArgumentTypeError("Rule '%s': partition number must be integer" % rule)
442 raise argparse.ArgumentTypeError("Rule '%s': size must be integer" % rule)
508 class WicArgumentParser(argparse.ArgumentParser):
540 raise argparse.ArgumentTypeError("no image or partition number specified.")
/openbmc/openbmc/poky/scripts/esdk-tools/
H A Dwic22 import argparse
88 class RootfsArgAction(argparse.Action):
384 raise argparse.ArgumentTypeError(err)
397 raise argparse.ArgumentTypeError("partition number is not specified")
429 raise argparse.ArgumentTypeError("Incorrect rule format: %s" % rule)
432 raise argparse.ArgumentTypeError("Rule '%s': partition number must be integer" % rule)
442 raise argparse.ArgumentTypeError("Rule '%s': size must be integer" % rule)
508 class WicArgumentParser(argparse.ArgumentParser):
540 raise argparse.ArgumentTypeError("no image or partition number specified.")
/openbmc/qemu/scripts/performance/
H A DtopN_perf.py34 import argparse
41 parser = argparse.ArgumentParser(
49 parser.add_argument('command', type=str, nargs='+', help=argparse.SUPPRESS)
H A DtopN_callgrind.py34 import argparse
41 parser = argparse.ArgumentParser(
49 parser.add_argument('command', type=str, nargs='+', help=argparse.SUPPRESS)
/openbmc/openbmc/poky/bitbake/bin/
H A Dbitbake-prserv10 import argparse
32 parser = argparse.ArgumentParser(
34 formatter_class=argparse.RawTextHelpFormatter)
/openbmc/openbmc-test-automation/templates/
H A Dpython_pgm_template7 parser = argparse.ArgumentParser(
10 formatter_class=argparse.ArgumentDefaultsHelpFormatter,
/openbmc/openbmc/poky/meta-selftest/lib/devtool/
H A Dtest.py1 import argparse
9 formatter_class=argparse.ArgumentDefaultsHelpFormatter)

1234567891011