Commit 0727dca3 authored by Louis's avatar Louis
Browse files

[cli] Le programme affiché dans l'aide est `pyromaths-cli` (et non pas `__main__.py`)

parent 0877d049
......@@ -107,4 +107,3 @@ Description complète
.. argparse::
:module: pyromaths.cli.test.__main__
:func: argument_parser
:prog: pyromaths.cli.test.__main__.py
......@@ -44,7 +44,9 @@ VERSION = "0.1.0"
def argument_parser():
"""Return an argument parser"""
parser = argparse.ArgumentParser()
parser = argparse.ArgumentParser(
prog='pyromaths-cli',
)
parser.add_argument(
'-v', '--version',
action='version',
......
......@@ -61,7 +61,9 @@ def ask_confirm(message):
def argument_parser():
"""Return an argument parser"""
parser = argparse.ArgumentParser()
parser = argparse.ArgumentParser(
prog="pyromaths-cli test",
)
parser.add_argument(
'-v', '--version',
action='version',
......
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