Skip to content

Commit

Permalink
Appease pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
simaoafonso-pwt committed Jun 14, 2023
1 parent 5f678ec commit 336c7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shtab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ def recurse_parser(cparser, positional_idx, requirements=None):
checks = [f'[ "$cmd[{iidx}]" == "{n}" ]' for iidx, n in enumerate(nn, start=2)]
if arg.choices:
nlist.append("( {}echo {} || false )".format(
' && '.join(checks + ['']), # Append the separator
' && '.join(checks + ['']), # Append the separator
' '.join(rf"'{c}'" for c in arg.choices),
))

Expand Down

0 comments on commit 336c7ad

Please sign in to comment.