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 basic CLI commands #816
Comments
I'd like to take this |
Sure thing, have at it! If you need help I'm usually either here or the Matrix chat. |
@dani-garcia Do you have a preference as for as cli argument parsing is concerned? |
Do you mean choice of library? If nothing has changed, clap is the most popular so I'd go that way. |
In that case I'd like to use structopt, which is built on top of clap but provides a nicer api imo |
Ah, I thought the structopt api was merged into clap too, but apparently that's scheduled to be released on the next version of clap 3.0! I agree the declarative api of structopt is nicer, I'd prefer to use that too. |
I see that if the GIT_VERSION environment var is set at compile time the app with print that as it's version. Should I use that for the version flag? If so what should it print if anything it that var is not set? And if not what should I print? |
For the version flag I'd just print If no version is provided, you could print something like.
|
I opened a PR #888 |
Closed because #888 got merged |
It could be handy to have some basic CLI options for the
bitwarden_rs
binary in place. Minimum set could be something likebitwarden_rs --help
andbitwarden_rs --version
.These CLI options can also be used to verify if the compiled binary is executable.
The text was updated successfully, but these errors were encountered: