diff --git a/.vscode/launch.json b/.vscode/launch.json index 0cfd91d..ee52e79 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,7 +11,7 @@ "mode": "auto", "program": "${workspaceRoot}", "args": [ - "launch", "--config", "aaa/main.yml", "cicommit" + "launch", "--param", "test=1" ] } diff --git a/internal/cmd/cli.go b/internal/cmd/cli.go index 29e08ff..d182780 100644 --- a/internal/cmd/cli.go +++ b/internal/cmd/cli.go @@ -39,7 +39,7 @@ type ( // Run executes the command line interface to the app. The passed ctx is used to cancel long running tasks. // appName is the name of the application and forms the suffix of the dot config file. func Run(ctx context.Context) int { - return runWithArgs(ctx, os.Args) + return runWithArgs(ctx, os.Args[1:]) } func runWithArgs(ctx context.Context, args []string) int {