Added non check (#2870)

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Chavithra <chavithra@gmail.com>
This commit is contained in:
Colin Delahunty
2022-10-17 19:03:00 +02:00
committed by GitHub
parent 12797d7e45
commit 222c01577f

View File

@@ -259,7 +259,7 @@ class NestedCompleter(Completer):
elif same_flags[1] in self.flags_processed:
self.flags_processed.remove(same_flags[1])
if cmd:
if cmd and self.original_options.get(cmd):
self.options = {
k: self.original_options.get(cmd).options[k] # type: ignore
for k in self.original_options.get(cmd).options.keys() # type: ignore