From 6b65ed2198f684bb2b25e93a511e12c4eddfcaa3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 26 Feb 2019 15:01:55 +1000 Subject: [PATCH] tools: restore --keepalive functionality Since 260711470964c73fcfd24bfdbc6ed74f7e7a5d5f 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 --- tools/ratbagctl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ratbagctl.in b/tools/ratbagctl.in index 8a36e045..67ae1756 100755 --- a/tools/ratbagctl.in +++ b/tools/ratbagctl.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: