Skip to content

Commit 83cf2e2

Browse files
authored
feat: Add -v as a shorthand for --version (#24)
1 parent 37c8573 commit 83cf2e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ${
5757
["--bun", "Use bun to remove and install packages."],
5858
["--verbose", "Show additional debugging information."],
5959
["-h, --help", "Show this help text."],
60-
["--version", "Print the version number."],
60+
["-v, --version", "Print the version number."],
6161
])
6262
}
6363
@@ -119,7 +119,7 @@ if (args.length === 0) {
119119
bun: { type: "boolean", default: false },
120120
debug: { type: "boolean", default: false },
121121
help: { type: "boolean", default: false, short: "h" },
122-
version: { type: "boolean", default: false },
122+
version: { type: "boolean", default: false, short: "v" },
123123
},
124124
});
125125

0 commit comments

Comments
 (0)