Skip to content

Commit

Permalink
feat: support --version
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrutchf committed Dec 1, 2024
1 parent 9e3ebb1 commit ea4a8ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ aead = { version = "0.5.2", features = ["std"] }
aes-gcm = "0.10.3"
anyhow = "1.0.93"
app_dirs2 = "2.5.5"
clap = "4.5.21"
clap = { version = "4.5.21", features = ["cargo"] }
educe = "0.6.0"
futures-macro = "0.3.31"
futures-util = "0.3.31"
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::Result;
use clap::{Arg, Command};
use clap::{crate_version, Arg, Command};
use tracing::{error, info};
use users_dirs::get_config_dir;
use tracing_appender::rolling;
Expand Down Expand Up @@ -35,6 +35,7 @@ fn cli() -> Command {
Command::new("git-lfs-synology")
.about("This is an implementation of a git lfs custom transfer agent. See https://github.com/git-lfs/git-lfs/blob/main/docs/custom-transfers.md for more information.")
.allow_external_subcommands(true)
.version(crate_version!())
.subcommand(
Command::new("login")
.about("Allows logging into the Synology NAS.")
Expand Down

0 comments on commit ea4a8ea

Please sign in to comment.