From ecad407e19e844ba129c3f2d420bc4a5fa088ec6 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Fri, 5 Jan 2024 17:27:55 +0100 Subject: [PATCH] sync: Sync now asks user selection by default Removed --select flag in favor of --all flag --- sync | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sync b/sync index b052b98..a22d972 100755 --- a/sync +++ b/sync @@ -22,9 +22,9 @@ parser = argparse.ArgumentParser( ) parser.add_argument("action", choices=["save", "restore"]) parser.add_argument( - "-s", - "--select", - help="Select the files and folders to sync", + "-a", + "--all", + help="Sync all files", action="store_true", ) @@ -125,7 +125,7 @@ if __name__ == "__main__": args = parser.parse_args() msg = "" - r = list_files(args.action == "save") if args.select else range(len(synced_files)) + r = range(len(synced_files)) if args.all else list_files(args.action == "save") for ri, i in enumerate(r): if args.action == "save": save(synced_files[i])