Skip to content

Commit c6319a1

Browse files
authored
chore: Adjust version flags to be -v and --version (#89)
1 parent 5f118d3 commit c6319a1

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

packages/cli-core/src/cli-program.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function createProgram() {
2727
const program = new Command()
2828
.name("clerk")
2929
.description("Clerk CLI")
30-
.version(typeof CLI_VERSION !== "undefined" ? CLI_VERSION : "0.0.0-dev")
30+
.version(typeof CLI_VERSION !== "undefined" ? CLI_VERSION : "0.0.0-dev", "-v, --version")
3131
.option(
3232
"--mode <mode>",
3333
"Force interaction mode (human or agent). Defaults to auto-detect based on TTY.",
@@ -569,7 +569,12 @@ function outputJsonError(
569569
errors?: ApiErrorEntry[],
570570
): void {
571571
const payload: {
572-
error: { code: string; message: string; docsUrl?: string; errors?: ApiErrorEntry[] };
572+
error: {
573+
code: string;
574+
message: string;
575+
docsUrl?: string;
576+
errors?: ApiErrorEntry[];
577+
};
573578
} = {
574579
error: { code, message },
575580
};

0 commit comments

Comments
 (0)