mirror of
https://github.com/1j01/textual-paint.git
synced 2024-09-11 15:56:03 +03:00
Simplify usage line in help
This commit is contained in:
parent
85449524bf
commit
1a7b6561bd
@ -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.
|
||||
|
||||
|
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user