Skip to content

Commit ff84a84

Browse files
committed
feat(cli):Add version
1 parent 19b0639 commit ff84a84

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/cli.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cli.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ const program = new Command();
495495
program
496496
.name("spfx-sample")
497497
.description("Fetch a single sample folder from a large GitHub repo using git sparse-checkout (no full clone).")
498-
.version("0.3.0");
498+
.version("0.3.0", "-v, --version", "output the current version");
499499

500500
// Respect NO_COLOR environment variable (https://no-color.org/) or explicit flag
501501
const envNoColor = typeof process.env.NO_COLOR !== "undefined";

0 commit comments

Comments
 (0)