File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,11 @@ fn main() {
100
100
Arg :: with_name ( "input" )
101
101
. help ( "the input file to use" )
102
102
. index ( 1 )
103
- . required ( true )
103
+ . required ( true ) ,
104
+ Arg :: with_name ( "quiet" )
105
+ . help ( "Be less verbose" )
106
+ . short ( "q" )
107
+ . long ( "quiet" )
104
108
] ) . get_matches ( ) ;
105
109
106
110
if let Some ( file_name) = matches. value_of ( "input" ) {
@@ -118,11 +122,13 @@ fn main() {
118
122
} ) ;
119
123
120
124
if let Ok ( Event :: Connect ( _sender) ) = rx. recv ( ) {
121
- println ! ( "{} {} Fetching Certificates ..." , style( "[Nettfiske]" ) . bold( ) . dim( ) , LOOKING_GLASS ) ;
125
+ if !matches. is_present ( "quiet" ) {
126
+ println ! ( "{} {} Fetching Certificates ..." , style( "[Nettfiske]" ) . bold( ) . dim( ) , LOOKING_GLASS ) ;
127
+ }
122
128
}
123
129
124
130
// Ensure the client has a chance to finish up
125
- client. join ( ) . unwrap ( ) ;
131
+ client. join ( ) . unwrap ( ) ;
126
132
}
127
133
}
128
134
@@ -135,6 +141,6 @@ fn open_json_config(file_name: &str) -> Result<String, IOError> {
135
141
let mut buf_reader = BufReader :: new ( file) ;
136
142
let mut contents = String :: new ( ) ;
137
143
buf_reader. read_to_string ( & mut contents) ?;
138
-
139
- Ok ( contents)
140
- }
144
+
145
+ Ok ( contents)
146
+ }
You can’t perform that action at this time.
0 commit comments