فهرست منبع

drop blank completion

Isaac 2 سال پیش
والد
کامیت
f1fd2e88dd
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      borgmatic/commands/completion.py

+ 1 - 0
borgmatic/commands/completion.py

@@ -111,6 +111,7 @@ def fish_completion():
         + tuple(
             f'''complete -c borgmatic -a '{' '.join(action.option_strings)}' -d {shlex.quote(action.help)} {build_fish_flags(action)}'''
             for action in top_level_parser._actions
+            if len(action.option_strings) > 0
         )
         + ('\n# subparser flags',)
         + tuple(