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

add an option to show the version #54

Merged
merged 1 commit into from
Jan 1, 2022
Merged

Conversation

KeenS
Copy link
Contributor

@KeenS KeenS commented Jan 1, 2022

This is useful when you want to check the version and install the latest binary if current is old.

$ cargo run -- --help
    Finished dev [unoptimized + debuginfo] target(s) in 0.03s
     Running `target/debug/xremap --help`
Usage: target/debug/xremap CONFIG [options]

Options:
        --device NAME   Include a device name or path
        --ignore NAME   Exclude a device name or path
        --watch         Add new devices automatically
    -h, --help          print this help menu
        --version       show version

$ cargo run -- --version
    Finished dev [unoptimized + debuginfo] target(s) in 0.03s
     Running `target/debug/xremap --version`
xremap version 0.1.7

For more detail of CARGO_PKG_VERSION, see https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates

Copy link
Contributor

@k0kubun k0kubun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@k0kubun k0kubun merged commit 359afbe into xremap:master Jan 1, 2022
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.

2 participants