summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 98bd9b34..ed8f2239 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -96,10 +96,6 @@ fn run_cache_subcommand(matches: &clap::ArgMatches) -> Result<()> {
assets.save(target_dir)?;
} else if matches.is_present("clear") {
clear_assets();
- } else if matches.is_present("config-dir") {
- writeln!(io::stdout(), "{}", config_dir())?;
- } else if matches.is_present("cache-dir") {
- writeln!(io::stdout(), "{}", cache_dir())?;
}
Ok(())
@@ -235,6 +231,12 @@ fn run() -> Result<bool> {
println!("{}", config_file().to_string_lossy());
Ok(true)
+ } else if app.matches.is_present("config-dir") {
+ writeln!(io::stdout(), "{}", config_dir())?;
+ Ok(true)
+ } else if app.matches.is_present("cache-dir") {
+ writeln!(io::stdout(), "{}", cache_dir())?;
+ Ok(true)
} else {
run_controller(&config)
}