Clarify filename argument

This commit is contained in:
Isaiah Odhner 2023-05-05 19:56:36 -04:00
parent 2af9f4fd53
commit 40496c312f
2 changed files with 3 additions and 2 deletions

View File

@ -79,7 +79,8 @@ usage: paint.py [options] [filename]
Paint in the terminal.
positional arguments:
filename File to open
filename Path to a file to open. File will be created if it
doesn't exist.
options:
-h, --help show this help message and exit

View File

@ -150,7 +150,7 @@ parser.add_argument('--clear-screen', action='store_true', help='Clear the scree
parser.add_argument('--restart-on-changes', action='store_true', help='Restart the app when the source code is changed, for development')
parser.add_argument('--recode-samples', action='store_true', help='Open and save each file in samples/, for testing')
parser.add_argument('filename', nargs='?', default=None, help='File to open')
parser.add_argument('filename', nargs='?', default=None, help='Path to a file to open. File will be created if it doesn\'t exist.')
# Automatically update the readme with the current arguments.
# TODO: disable for release builds (or I could make this another dev flag, but I like the idea of it being automatic)