From 79d0585a21e0a640820f760019a389f88d0515c2 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Fri, 16 Aug 2024 21:31:18 +1200 Subject: [PATCH] allow unknown command line args --- meshchat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meshchat.py b/meshchat.py index eadbb1e..85c4f1c 100644 --- a/meshchat.py +++ b/meshchat.py @@ -2166,6 +2166,7 @@ def main(): parser.add_argument("--reticulum-config-dir", type=str, help="Path to a Reticulum config directory for the RNS stack to use (e.g: ~/.reticulum)") parser.add_argument("--storage-dir", type=str, help="Path to a directory for storing databases and config files (default: ./storage)") parser.add_argument("--test-exception-message", type=str, help="Throws an exception. Used for testing the electron error dialog") + parser.add_argument('args', nargs=argparse.REMAINDER) # allow unknown command line args args = parser.parse_args() # check if we want to test exception messages