mirror of
https://github.com/meshtastic/python.git
synced 2025-12-27 01:47:50 -05:00
make multiarg deprecated options consume both args (fixes --setchan)
This commit is contained in:
@@ -627,8 +627,8 @@ def initParser():
|
||||
parser.add_argument("--noproto", help="Don't start the API, just function as a dumb serial terminal.",
|
||||
action="store_true")
|
||||
|
||||
parser.add_argument('--setchan', dest='deprecated',
|
||||
action='store_true', help='Deprecated, use "--ch-set param value" instead')
|
||||
parser.add_argument('--setchan', dest='deprecated', nargs=2, action='append',
|
||||
help='Deprecated, use "--ch-set param value" instead')
|
||||
parser.add_argument('--set-router', dest='deprecated',
|
||||
action='store_true', help='Deprecated, use "--set is_router true" instead')
|
||||
parser.add_argument('--unset-router', dest='deprecated',
|
||||
|
||||
Reference in New Issue
Block a user