mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user