From 21e4fddeebe541856e25a398018854fb0cf6fbd9 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 12 Nov 2023 10:10:01 +0100 Subject: op-mode: T5658: fix "monitor traceroute" completion helper (cherry picked from commit c0de93d37354ec89f44dde7f1b5a4c8af550a019) --- src/op_mode/mtr.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/op_mode/mtr.py') diff --git a/src/op_mode/mtr.py b/src/op_mode/mtr.py index efb627e51..de139f2fa 100644 --- a/src/op_mode/mtr.py +++ b/src/op_mode/mtr.py @@ -242,8 +242,11 @@ if __name__ == '__main__': if not host: sys.exit("mtr: Missing host") - if host == '--get-options': - args.first() # pop ping + + if host == '--get-options' or host == '--get-options-nested': + if host == '--get-options-nested': + args.first() # pop monitor + args.first() # pop mtr | traceroute args.first() # pop IP usedoptionslist = [] while args: -- cgit v1.2.3