-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add support for -V option to give version #472
Comments
One complexity is plugins must be loaded before callbacks are called. |
Also, should version string be printed on stderr ot stdout? |
Working backwards, I'd print to What about an external static pointer to a string constant that the user is required to set? |
stdout: OK |
Committed -V with first a mandatory CLIXON_VERSION followed by customized plugin callbacks. |
Rather than doing
echo -e "show version\nexit\n" | clixon_cli
it would be nicer to just haveclixon_cli -V
give an answer.That said, the version string should be one provided by the developer, not simply
CLIXON_VERSION_STRING
, etc.The text was updated successfully, but these errors were encountered: