From 3cae13d310e21da82ee452c73491cbb24af01657 Mon Sep 17 00:00:00 2001 From: Teascade Date: Tue, 25 Aug 2020 21:59:49 +0300 Subject: [PATCH] Make get subcommand debug-build only --- src/args.rs | 1 + src/main.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/args.rs b/src/args.rs index 0cd8b93..ec63459 100644 --- a/src/args.rs +++ b/src/args.rs @@ -22,6 +22,7 @@ pub enum Subcommand { Init(InitOpt), Api(ApiOpt), Nick(NickOpt), + #[cfg(debug_assertions)] Get(GetOpt), } diff --git a/src/main.rs b/src/main.rs index 6182923..fcc093d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -77,6 +77,8 @@ fn from_env(env: EnvOpt) -> Result<(), GenericError> { } Ok(()) } + + #[cfg(debug_assertions)] Subcommand::Get(opt) => { let config = Config::from_path(&env.config)?; let api = API::new(config.clone());