Commit 13a8ec67 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] cli: add examples; increase text width

parent 4ad5caf1
......@@ -351,7 +351,13 @@ def main():
# parser configuration
global parser
parser = argparse.ArgumentParser(description=__doc__)
parser = argparse.ArgumentParser(
description="Cadbiom - Command Line Interface",
formatter_class=lambda prog: argparse.RawDescriptionHelpFormatter(prog, width=90),
epilog="""Examples:
$ cadbiom_cmd solutions_search -h""",
)
# Default log level: debug
parser.add_argument("-vv", "--verbose", nargs="?", default="info")
# Subparsers
......@@ -370,12 +376,11 @@ def main():
parser_search = subparsers.add_parser(
"solutions_search",
help=solutions_search.__doc__,
formatter_class=CustomFormatter,
epilog="""Examples:\n
formatter_class=lambda prog: CustomFormatter(prog, width=90),
epilog="""Examples:
$ cadbiom_cmd solutions_search model_pid.bcx SRP9 --steps 10 --output ./SRP9_solutions/
$ cadbiom_cmd solutions_search model_pid.bcx --input_file my_queries.txt --output
""",
$ cadbiom_cmd solutions_search model_pid.bcx --input_file my_queries.txt --output""",
)
## I/O
input_output_group = parser_search.add_argument_group(title="I/O")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment