Merge branch 'main' into config-command-line.

This commit is contained in:
Dan Helfman
2025-03-29 22:52:40 -07:00
+5 -5
View File
@@ -959,11 +959,11 @@ def exit_with_help_link(): # pragma: no cover
def check_and_show_help_on_no_args(configs):
"""
Check if the 'borgmatic' command is run without any arguments. If the configuration option
'default_actions' is set to False, show the help message. Otherwise, trigger the
default backup behavior.
"""
'''
Check if the borgmatic command is run without any arguments. If the configuration option
"default_actions" is set to False, show the help message. Otherwise, trigger the default backup
behavior.
'''
if len(sys.argv) == 1: # No arguments provided
default_actions = any(config.get('default_actions', True) for config in configs.values())
if not default_actions: