Skip to content

Commit

Permalink
feat(cli): added -v support in cli to get version (#6835)
Browse files Browse the repository at this point in the history
fixes #6763

Wing CLI currently supports `-V` and `--version`.

This adds the ability to `-v` to get the current version.


## Checklist

- [ ] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [ ] Description explains motivation and solution
- [ ] Tests added (always)
- [ ] Docs updated (only required for features)
- [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
  • Loading branch information
boyney123 authored Jul 3, 2024
1 parent bb34574 commit d383d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/wing/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function main() {
showGlobalOptions: true,
});

program.name("wing").version(PACKAGE_VERSION);
program.name("wing").version(PACKAGE_VERSION, "-v, --version, -V", "output the current version");

program
.option("--debug", "Enable debug logging (same as DEBUG=1)", () => {
Expand Down

0 comments on commit d383d0d

Please sign in to comment.