Fix name of program in help text

Originally it was `paint.py`, but after switching to running as a module
(needed to use Python's relative imports for some reason) it became "-c"
when running with the `textual` CLI.
This commit is contained in:
Isaiah Odhner 2023-06-09 00:22:14 -04:00
parent c15e8ce427
commit 178e4c0689
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ textual-paint
```
$ python3 paint.py --help
usage: paint.py [options] [filename]
usage: textual-paint [options] [filename]
Paint in the terminal.

View File

@ -146,7 +146,7 @@ ascii_only_icons = False
inspect_layout = False
# Command line arguments
parser = argparse.ArgumentParser(description='Paint in the terminal.', usage='%(prog)s [options] [filename]')
parser = argparse.ArgumentParser(description='Paint in the terminal.', usage='%(prog)s [options] [filename]', prog="textual-paint")
parser.add_argument('--version', action='version', version=f'%(prog)s {__version__}')
parser.add_argument('--theme', default='light', help='Theme to use, either "light" or "dark"', choices=['light', 'dark'])
parser.add_argument('--language', default='en', help='Language to use', choices=['ar', 'cs', 'da', 'de', 'el', 'en', 'es', 'fi', 'fr', 'he', 'hu', 'it', 'ja', 'ko', 'nl', 'no', 'pl', 'pt', 'pt-br', 'ru', 'sk', 'sl', 'sv', 'tr', 'zh', 'zh-simplified'])