mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-31 13:43:02 +02:00
support required actions
This commit is contained in:
@@ -69,6 +69,7 @@ def bash_completion():
|
||||
|
||||
# fish section
|
||||
|
||||
|
||||
def has_file_options(action: Action):
|
||||
return action.metavar in (
|
||||
'FILENAME',
|
||||
@@ -82,7 +83,8 @@ def has_choice_options(action: Action):
|
||||
|
||||
def has_required_param_options(action: Action):
|
||||
return (
|
||||
action.nargs
|
||||
action.required is True
|
||||
or action.nargs
|
||||
in (
|
||||
"+",
|
||||
"*",
|
||||
|
||||
Reference in New Issue
Block a user