@@ -54,7 +54,7 @@ use validators::path_readable;
54
54
#[ structopt( author="" , rename_all = "kebab-case" ,
55
55
long_about = "\n TODO: Replace me with the description text for the command" ,
56
56
raw( setting = "structopt::clap::AppSettings::ColoredHelp" ) ) ]
57
- struct Opt {
57
+ struct CliOpts {
58
58
/// Decrease verbosity (-q, -qq, -qqq, etc.)
59
59
#[ structopt( short, long, parse( from_occurrences) ) ]
60
60
quiet : usize ,
@@ -83,7 +83,7 @@ struct Opt {
83
83
/// having to put the error message pretty-printing inside main()
84
84
fn main ( ) {
85
85
// Parse command-line arguments (exiting on parse error, --version, or --help)
86
- let opts = Opt :: from_args ( ) ;
86
+ let opts = CliOpts :: from_args ( ) ;
87
87
88
88
// Configure logging output so that -q is "decrease verbosity" rather than instant silence
89
89
let verbosity = ( opts. verbose . saturating_add ( DEFAULT_VERBOSITY ) ) . saturating_sub ( opts. quiet ) ;
@@ -97,8 +97,8 @@ fn main() {
97
97
98
98
// If requested, generate shell completions and then exit with status of "success"
99
99
if let Some ( shell) = opts. dump_completions {
100
- Opt :: clap ( ) . gen_completions_to (
101
- Opt :: clap ( ) . get_bin_name ( ) . unwrap_or_else ( || clap:: crate_name!( ) ) ,
100
+ CliOpts :: clap ( ) . gen_completions_to (
101
+ CliOpts :: clap ( ) . get_bin_name ( ) . unwrap_or_else ( || clap:: crate_name!( ) ) ,
102
102
shell,
103
103
& mut io:: stdout ( ) ) ;
104
104
std:: process:: exit ( 0 ) ;
@@ -121,7 +121,7 @@ fn main() {
121
121
}
122
122
123
123
/// The actual `main()`
124
- fn run ( opts : Opt ) -> Result < ( ) > {
124
+ fn run ( opts : CliOpts ) -> Result < ( ) > {
125
125
for inpath in opts. inpath {
126
126
unimplemented ! ( )
127
127
}
@@ -132,7 +132,7 @@ fn run(opts: Opt) -> Result<()> {
132
132
// Tests go below the code where they'll be out of the way when not the target of attention
133
133
#[ cfg( test) ]
134
134
mod tests {
135
- // use super::Opt ;
135
+ // use super::CliOpts ;
136
136
137
137
#[ test]
138
138
/// Test something
0 commit comments