File: version-flag.diff

package info (click to toggle)
rust-repro-threshold 0.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 448 kB
  • sloc: makefile: 12
file content (12 lines) | stat: -rw-r--r-- 362 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/args.rs b/src/args.rs
index 7e41d72..9c94fad 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -5,6 +5,7 @@ use std::io::stdout;
 use std::path::PathBuf;

 #[derive(Debug, Parser)]
+#[command(version)]
 pub struct Args {
     /// Increase logging output (can be used multiple times)
     #[arg(short, long, global = true, action(ArgAction::Count))]