Verified Commit bfc57fda authored by Maxime Buquet's avatar Maxime Buquet
Browse files

cli example: rustfmt


Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 08d33261
...@@ -32,7 +32,8 @@ fn main() { ...@@ -32,7 +32,8 @@ fn main() {
let matches = clap_app!(@app (app_from_crate!()) let matches = clap_app!(@app (app_from_crate!())
(@arg file: -f --file +takes_value +required "File to parse.") (@arg file: -f --file +takes_value +required "File to parse.")
).get_matches(); )
.get_matches();
let filename = matches.value_of("file").unwrap(); let filename = matches.value_of("file").unwrap();
let timelogs = read_file(filename).unwrap(); let timelogs = read_file(filename).unwrap();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment