From c98994fd1a5fcc9f4ae08bec65bbcdb0d940c7d3 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Tue, 10 Feb 2026 17:06:42 +0000 Subject: [PATCH] Dry run cleanup, also allow --dry-run. --- fastapi_vue_setup.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fastapi_vue_setup.py b/fastapi_vue_setup.py index 3254dff..c6bd654 100644 --- a/fastapi_vue_setup.py +++ b/fastapi_vue_setup.py @@ -1186,6 +1186,8 @@ def cmd_setup(args: argparse.Namespace) -> int: dry = args.dry print_boxed(f"fastapi-vue-setup {version}") + if dry: + print("šŸƒ DRY RUN MODE - no changes will be made\n") # Create project directory if it doesn't exist if not project_dir.exists(): @@ -1197,9 +1199,6 @@ def cmd_setup(args: argparse.Namespace) -> int: print(f"šŸ”§ Setting up project: {project_dir}") - if dry: - print("\nšŸƒ DRY RUN MODE - no changes will be made\n") - # Step 1: Ensure frontend exists (do this first so cancellation doesn't leave partial setup) if not ensure_frontend(project_dir, dry): return 1 @@ -1522,7 +1521,9 @@ Examples: metavar="BACKEND,VITE,DEV", help="Port configuration as comma-separated values (default: 3100,3100,3200)", ) - parser.add_argument("--dry", action="store_true", help="Show what would be done") + parser.add_argument( + "--dry", "--dry-run", action="store_true", help="Show what would be done" + ) args = parser.parse_args()