diff options
| author | Nathan Jaremko | 2019-02-24 18:57:46 -0500 |
|---|---|---|
| committer | Nathan Jaremko | 2019-02-24 18:57:46 -0500 |
| commit | ec5f7a63028303f0f0aab78dbebd61afba68b184 (patch) | |
| tree | fd48b58047e3abdb2b49c2de3128696371ad6754 /src/main.rs | |
| parent | b238a6606fb4ea0df4c69b4f15874a65f22263b4 (diff) | |
| download | podcast-ec5f7a63028303f0f0aab78dbebd61afba68b184.tar.bz2 | |
Add completion generation
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 8be9e82..9d5b4d5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,14 +30,15 @@ pub mod errors { use self::errors::*; use self::structs::*; -const VERSION: &str = "0.8.1"; +const VERSION: &str = "0.8.2"; fn main() -> Result<()> { utils::create_directories().chain_err(|| "unable to create directories")?; migration_handler::migrate_old_subscriptions()?; let mut state = State::new(VERSION).chain_err(|| "unable to load state")?; let config = Config::new()?; - let matches = parser::get_matches(&VERSION); - match_handler::handle_matches(&VERSION, &mut state, &config, &matches)?; + let mut app = parser::get_app(&VERSION); + let matches = app.clone().get_matches(); + match_handler::handle_matches(&VERSION, &mut state, &config, &mut app, &matches)?; state.save().chain_err(|| "unable to save state") } |
