diff --git a/npbackup/__main__.py b/npbackup/__main__.py index 7ec082f..c5b94f5 100644 --- a/npbackup/__main__.py +++ b/npbackup/__main__.py @@ -126,7 +126,7 @@ This is free software, and you are welcome to redistribute it under certain cond type=str, default=None, required=False, - help='Forget given snapshot', + help="Forget given snapshot", ) parser.add_argument( "--policy", @@ -523,7 +523,26 @@ This is free software, and you are welcome to redistribute it under certain cond cli_args["operation"] = "has_recent_snapshot" # Group operation mode - if args.group_operation not in ("backup", "restore", "snapshots", "list", "ls", "find", "policy", "quick_check", "full_check", "prune", "prune_max", "unlock", "repair_index", "repair_snapshots", "dump", "stats", "raw", "has_recent_snapshot"): + if args.group_operation not in ( + "backup", + "restore", + "snapshots", + "list", + "ls", + "find", + "policy", + "quick_check", + "full_check", + "prune", + "prune_max", + "unlock", + "repair_index", + "repair_snapshots", + "dump", + "stats", + "raw", + "has_recent_snapshot", + ): logger.critical( f"Invalid group operation {args.group_operation}. Valid operations are [backup|restore|snapshots|list|ls|find|policy|quick_check|full_check|prune|prune_max|unlock|repair_index|repair_snapshots|dump|stats|raw|has_recent_snapshot]" ) diff --git a/npbackup/gui/__main__.py b/npbackup/gui/__main__.py index 3b04731..e26783d 100644 --- a/npbackup/gui/__main__.py +++ b/npbackup/gui/__main__.py @@ -891,7 +891,6 @@ def _main_gui(viewer_mode: bool): if not config_file and not full_config and not viewer_mode: window["-NO-CONFIG-"].Update(visible=True) - # Don't load repo info on first load, unless we're dealing with viewer if repo_config and viewer_mode: try: