Simplify usage line in help

This commit is contained in:
Isaiah Odhner 2023-05-01 10:47:36 -04:00
parent 85449524bf
commit 1a7b6561bd
2 changed files with 2 additions and 5 deletions

View File

@ -72,10 +72,7 @@ textual-paint
```
$ python3 paint.py --help
usage: paint.py [-h] [--version] [--theme {light,dark}]
[--language {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}]
[--ascii-only-icons] [--inspect-layout] [--clear-screen] [--restart-on-changes]
[filename]
usage: paint.py [options] [filename]
Paint in the terminal.

View File

@ -131,7 +131,7 @@ inspect_layout = False
# Command line arguments
# Please keep in sync with the README
parser = argparse.ArgumentParser(description='Paint in the terminal.')
parser = argparse.ArgumentParser(description='Paint in the terminal.', usage='%(prog)s [options] [filename]')
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'])