1
0
forked from drath/libratbag

tools: restore --keepalive functionality

Since 2607114709 we returned the second parser
to handle everything after the device argument. That parser didn't have the
various options we handled in the original one, causing --keepalive to stop
working. Restore this by passing the existing namespace down to the parser.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2019-02-26 15:01:55 +10:00
parent 8e9dd6f392
commit 6b65ed2198

View File

@@ -1388,7 +1388,7 @@ class RatbagParserRoot(object):
# retrieve the device and remove it from the command processing
self.parser.add_argument('device_or_list', action="store")
ns, rest = self.parser.parse_known_args(rest)
ns, rest = self.parser.parse_known_args(rest, namespace=ns)
if ns.device_or_list == 'list':
if rest: