diff options
Diffstat (limited to 'src/bin/jvn.rs')
| -rw-r--r-- | src/bin/jvn.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/jvn.rs b/src/bin/jvn.rs index c2ae5ec..b051c51 100644 --- a/src/bin/jvn.rs +++ b/src/bin/jvn.rs @@ -89,8 +89,13 @@ async fn main() { // Other flags let no_error_logs = special_flag!(args, "--no-error-logs"); let help = special_flag!(args, "--help") || special_flag!(args, "-h"); + let version = special_flag!(args, "--version") || special_flag!(args, "-v"); let confirmed = special_flag!(args, "--confirm") || special_flag!(args, "-C"); + if version { + args.insert(0, "version".to_string()); + trace!("{}", t!("verbose.redirect_to_version_command")); + } if no_error_logs { trace!("{}", t!("verbose.no_error_logs")); } |
