mirror of
https://github.com/meshtastic/python.git
synced 2026-06-21 22:09:21 -04:00
make specifying an argument to --seriallog optional
thanks @ianmcorvidae for telling me about the cool nargs='?' option!
This commit is contained in:
@@ -1170,7 +1170,10 @@ def initParser():
|
||||
|
||||
group.add_argument(
|
||||
"--seriallog",
|
||||
help="Log device serial output to either 'stdout', 'none' or a filename to append to.",
|
||||
help="Log device serial output to either 'none' or a filename to append to. Defaults to 'stdout' if no filename specified.",
|
||||
nargs='?',
|
||||
const="stdout",
|
||||
default=None
|
||||
)
|
||||
|
||||
group.add_argument(
|
||||
|
||||
Reference in New Issue
Block a user