diff --git a/Cargo.lock b/Cargo.lock index adbb948..e1c015e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -620,7 +620,7 @@ dependencies = [ [[package]] name = "tiempo" -version = "1.0.0" +version = "1.0.1" dependencies = [ "ansi_term 0.12.1", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 2a8375d..949a51c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tiempo" -version = "1.0.0" +version = "1.0.1" authors = ["Abraham Toriz "] edition = "2018" description = "A command line time tracker" diff --git a/src/main.rs b/src/main.rs index dd4e186..de5e128 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,10 @@ use std::convert::TryInto; use std::process::exit; use std::io; -use clap::{App, Arg, SubCommand, AppSettings, crate_version, ArgMatches}; +use clap::{ + App, Arg, SubCommand, AppSettings, ArgMatches, crate_version, crate_authors, + crate_description, crate_name, +}; use chrono::Utc; use regex::Regex; @@ -109,11 +112,11 @@ fn main() { // Now declar this app's cli let matches = App::new("Tiempo") - .name("t") + .name(crate_name!()) .setting(AppSettings::SubcommandRequired) .version(crate_version!()) - .author("Abraham Toriz ") - .about("Tiempo helps you keep track of time spent in different activities") + .author(crate_authors!()) + .about(crate_description!()) .subcommand(SubCommand::with_name("archive") .visible_alias("a")