diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/actions/index/action.rs | 4 | ||||
-rw-r--r-- | src/cli.rs | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/actions/index/action.rs b/src/actions/index/action.rs index 62cdf32..01cf098 100644 --- a/src/actions/index/action.rs +++ b/src/actions/index/action.rs @@ -167,12 +167,10 @@ mod integration { use structopt::StructOpt; #[test] - #[ignore] fn test_index() { let testdir = prepare_testdir("testdir"); - //TODO This is not thread safe - let args = CommandLine::from_iter(&["index"]); + let args = CommandLine::from_iter(&["khaleesi", "index"]); if let Index(x) = args.cmd { action_index(&x).unwrap(); } @@ -1,13 +1,14 @@ -use structopt::StructOpt; use std::path::PathBuf; +use structopt::StructOpt; #[derive(Debug, StructOpt)] #[structopt( author = "", - name = "khalessi", + name = "khaleessi", about = "Command line calendar tool.", - raw(setting = "structopt::clap::AppSettings::VersionlessSubcommands"), + raw(setting = "structopt::clap::AppSettings::VersionlessSubcommands") )] + pub struct CommandLine { /// verbosity #[structopt(short = "v", parse(from_occurrences))] |