mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
fix(ArgparseCompleter): adjust parsing for upstream private changes
The upstream private API for `_parse_optional` changed, needed to update this.
This commit is contained in:
parent
cd05822f9a
commit
8a65d4f449
1 changed files with 3 additions and 0 deletions
|
@ -543,6 +543,9 @@ class ArgparseCompleter:
|
|||
if not act_res:
|
||||
# it is not a option string: pass
|
||||
break
|
||||
if isinstance(act_res, list):
|
||||
assert len(act_res) == 1
|
||||
act_res = act_res[0]
|
||||
# it is a valid option and advance
|
||||
self.remaining_args = self.remaining_args[1:]
|
||||
act, *_, value = act_res
|
||||
|
|
Loading…
Add table
Reference in a new issue