Skip to content

Add version command support to main function#84

Open
rakeshModak wants to merge 2 commits intosunilksamanta:masterfrom
rakeshModak:feature/version-checking
Open

Add version command support to main function#84
rakeshModak wants to merge 2 commits intosunilksamanta:masterfrom
rakeshModak:feature/version-checking

Conversation

@rakeshModak
Copy link

This pull request improves the command-line interface in index.js by adding support for a version flag and refining error handling.

Command-line interface improvements:

  • Added support for --version and -v flags to display the current version of Calmapi, using packageInfo.version.
  • Changed the handling of invalid commands to print an error message to the console instead of throwing an exception, providing a friendlier user experience.

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.

1 participant