feat: Update cli interface

This commit is contained in:
Dheepak Krishnamurthy 2021-12-31 23:58:09 -07:00
parent d8176e01df
commit 8342ce05af
8 changed files with 137 additions and 13 deletions

View file

@ -8,12 +8,34 @@ pub fn generate_cli_app() -> App<'static> {
.version(APP_VERSION)
.author("Dheepak Krishnamurthy <@kdheepak>")
.about("A taskwarrior terminal user interface")
.arg(
Arg::new("data")
.short('d')
.long("data")
.value_name("FOLDER")
.help("Sets the data folder for taskwarrior-tui")
.takes_value(true),
)
.arg(
Arg::new("config")
.short('c')
.long("config")
.value_name("FOLDER")
.help("Sets the config folder for taskwarrior-tui")
.takes_value(true),
)
.arg(
Arg::new("taskdata")
.long("taskdata")
.value_name("FOLDER")
.help("Sets the .task folder using the TASKDATA environment variable for taskwarrior")
.takes_value(true),
)
.arg(
Arg::new("taskrc")
.long("taskrc")
.value_name("FILE")
.help("Sets a custom config file")
.help("Sets the .taskrc file using the TASKRC environment variable for taskwarrior")
.takes_value(true),
)
.arg(