diff --git a/Cargo.toml b/Cargo.toml index 3eb1b24..d54d517 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ tokio = { version = "1.36.0", features = ["full"] } tokio-util = "0.7.8" ratatui = { version = "0.28.0", features = ["all-widgets"] } urlencoding = "2.1.2" -clap = { version = "4.5.20", features = ["derive", "cargo"] } +clap = { version = "4.5.20", features = ["derive", "cargo", "env"] } clap_complete = "4.5.33" itertools = "0.13.0" ctrlc = "3.4.5" diff --git a/src/main.rs b/src/main.rs index 3ed8f6b..605da9d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,10 +71,16 @@ struct Cli { long, global = true, value_parser, + env = "MANAGARR_CONFIG_FILE", help = "The Managarr configuration file to use" )] config: Option, - #[arg(long, global = true, help = "Disable the terminal size checks")] + #[arg( + long, + global = true, + env = "MANAGARR_DISABLE_TERMINAL_SIZE_CHECKS", + help = "Disable the terminal size checks" + )] disable_terminal_size_checks: bool, }