diff --git a/framework_lib/src/commandline/clap_std.rs b/framework_lib/src/commandline/clap_std.rs index 6d7f50ea..600efa74 100644 --- a/framework_lib/src/commandline/clap_std.rs +++ b/framework_lib/src/commandline/clap_std.rs @@ -167,14 +167,14 @@ struct ClapCli { #[arg(long)] charge_limit: Option>, - /// Get or set max charge current limit + /// Set max charge current limit #[arg(long)] - #[clap(num_args = ..=2)] + #[clap(num_args = 1..=2)] charge_current_limit: Vec, - /// Get or set max charge current limit + /// Set max charge current limit #[arg(long)] - #[clap(num_args = ..=2)] + #[clap(num_args = 1..=2)] charge_rate_limit: Vec, /// Get GPIO value by name or all, if no name provided diff --git a/framework_lib/src/lib.rs b/framework_lib/src/lib.rs index 93d91e2b..05adf8fb 100644 --- a/framework_lib/src/lib.rs +++ b/framework_lib/src/lib.rs @@ -1,6 +1,7 @@ //! A library to interact with [Framework Computer](https://frame.work) hardware and building tools to do so. #![cfg_attr(feature = "uefi", no_std)] +#![allow(clippy::uninlined_format_args)] extern crate alloc; #[cfg(feature = "uefi")]