Merge pull request #618 from geeksville/pr-fixstdout

make specifying an argument to --seriallog optional
This commit is contained in:
Ian McEwen authored and GitHub committed 2024-06-30 09:31:41 -07:00
commit 18883b977b
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@
"request": "launch",
"module": "meshtastic",
"justMyCode": true,
"args": ["--debug", "--seriallog", "stdout"]
"args": ["--debug", "--seriallog"]
},
{
"name": "meshtastic test",
+4 -1
View File
@@ -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(