Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#5871 Added "-v" flag as well along with "version" #5873

Conversation

Tushar-kalsi
Copy link

Fixed #5871
Added -v RegisterCommond component in /cmd/commonds.go file which will work as "caddy -v" in cli to show the current version . Not removed existing version RegisterCommond component which means both "caddy version" and "caddy -v" works same .

Both -v and version flag works same to give version of caddy .
@CLAassistant
Copy link

CLAassistant commented Oct 10, 2023

CLA assistant check
All committers have signed the CLA.

@mohammed90
Copy link
Member

Thank you for the PR! The implementation should be a flag, not a command with hyphen in its name. I have the feature implemented locally and will push it later. Thank you!

@mohammed90 mohammed90 closed this Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add -v flag support to main CLI command
3 participants