From 45e8e1b478d41626b7723bb65ecb34ea51b00a9c Mon Sep 17 00:00:00 2001 From: Fabian Both Date: Thu, 15 Jan 2026 11:05:44 +0100 Subject: [PATCH] make the file path a required argument --- src/cli.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/cli.ts b/src/cli.ts index ed6e970..bdf004b 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -408,11 +408,10 @@ export const buildCmd = (): CompletableCommand => { .description("Edit yaml test case") .helpGroup("test-cases") .addOption(testTargetIdOption) - .requiredOption( - "-f, --file-path ", - "The path to the local yaml file you want to edit", - ) - .action(addTestTargetWrapper(edit)); + .argument("", "The path to the local yaml file you want to edit") + .action((filePath, options) => + addTestTargetWrapper(edit)({ ...options, filePath }), + ); createCommandWithCommonOptions(program, "list-test-targets") .description("List all test targets")