Commit 4ad5caf1 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] cli: Add examples for solutions_search

parent 35d16999
......@@ -338,6 +338,14 @@ class ReadableDir(argparse.Action):
exit()
class CustomFormatter(
argparse.ArgumentDefaultsHelpFormatter,
argparse.RawDescriptionHelpFormatter
):
"""Formatter used to print default values AND do not format raw text"""
pass
def main():
"""Argument parser"""
......@@ -362,7 +370,12 @@ def main():
parser_search = subparsers.add_parser(
"solutions_search",
help=solutions_search.__doc__,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
formatter_class=CustomFormatter,
epilog="""Examples:\n
$ 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
""",
)
## 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