@@ -6,6 +6,10 @@ mod options {
6
6
#[ argh( name = "gio-plumbing" ) ]
7
7
/// The lean git underworld
8
8
pub struct Args {
9
+ #[ argh( switch) ]
10
+ /// print the program version.
11
+ pub version : bool ,
12
+
9
13
#[ argh( subcommand) ]
10
14
pub subcommand : SubCommands ,
11
15
}
@@ -20,10 +24,10 @@ mod options {
20
24
#[ derive( FromArgs , PartialEq , Debug ) ]
21
25
#[ argh( subcommand, name = "verify-pack" ) ]
22
26
pub struct VerifyPack {
23
- /// if set, output statistical information about the pack
27
+ /// output statistical information about the pack
24
28
#[ argh( switch, short = 's' ) ]
25
29
pub statistics : bool ,
26
- /// if set, verbose progress messages are printed line by line
30
+ /// verbose progress messages are printed line by line
27
31
#[ argh( switch, short = 'v' ) ]
28
32
pub verbose : bool ,
29
33
/// the '.pack' or '.idx' file whose checksum to validate.
@@ -39,7 +43,7 @@ use std::io::{stderr, stdout};
39
43
40
44
pub fn main ( ) -> Result < ( ) > {
41
45
pub use options:: * ;
42
- let cli: Args = argh :: from_env ( ) ;
46
+ let cli: Args = crate :: shared :: from_env ( ) ;
43
47
match cli. subcommand {
44
48
SubCommands :: VerifyPack ( VerifyPack {
45
49
path,
0 commit comments