diff --git a/config_macros.rs b/config_macros.rs
index e4c3ca5c..1c8e40c3 100644
--- a/config_macros.rs
+++ b/config_macros.rs
@@ -50,7 +50,9 @@ pub fn override_derive(filenames: &[(&str, &str)]) {
* along with meli. If not, see .
*/
-//! This module is automatically generated by build.rs.
+#![allow(clippy::derivable_impls)]
+
+//! This module is automatically generated by config_macros.rs.
use super::*;
"##
diff --git a/src/bin.rs b/src/bin.rs
index e1c627b5..510a5908 100644
--- a/src/bin.rs
+++ b/src/bin.rs
@@ -42,6 +42,8 @@ extern crate serde_json;
extern crate smallvec;
extern crate termion;
+use structopt::StructOpt;
+
#[global_allocator]
static GLOBAL: System = System;
@@ -120,6 +122,7 @@ fn notify(
Ok(r)
}
+#[cfg(feature = "cli-docs")]
fn parse_manpage(src: &str) -> Result {
match src {
"" | "meli" | "main" => Ok(ManPages::Main),
@@ -132,8 +135,7 @@ fn parse_manpage(src: &str) -> Result {
}
}
-use structopt::StructOpt;
-
+#[cfg(feature = "cli-docs")]
#[derive(Copy, Clone, Debug)]
/// Choose manpage
enum ManPages {
@@ -193,9 +195,11 @@ enum SubCommand {
#[derive(Debug, StructOpt)]
struct ManOpt {
#[structopt(default_value = "meli", possible_values=&["meli", "conf", "themes"], value_name="PAGE", parse(try_from_str = parse_manpage))]
+ #[cfg(feature = "cli-docs")]
page: ManPages,
/// If true, output text in stdout instead of spawning $PAGER.
#[structopt(long = "no-raw", alias = "no-raw", value_name = "bool")]
+ #[cfg(feature = "cli-docs")]
no_raw: Option