mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-05-12 21:17:51 +00:00
upgrade to edition 2021, clippy fixes, error fixed
This commit is contained in:
parent
6def9f298c
commit
b540284764
5 changed files with 18 additions and 15 deletions
|
@ -5,6 +5,7 @@ pub fn build_cli() -> App<'static, 'static> {
|
|||
.version(env!("CARGO_PKG_VERSION"))
|
||||
.author("crapStone <crapstone01@gmail.com>")
|
||||
.about("Utility to interact with backlight")
|
||||
.global_setting(clap::AppSettings::ArgRequiredElseHelp)
|
||||
.arg(
|
||||
Arg::with_name("set")
|
||||
.short("s")
|
||||
|
@ -47,7 +48,10 @@ pub fn build_cli() -> App<'static, 'static> {
|
|||
.long("full")
|
||||
.help("Sets brightness to highest value"),
|
||||
)
|
||||
.group(ArgGroup::with_name("brightness_control").args(&["set", "inc", "dec", "get", "zer", "ful"]))
|
||||
.group(
|
||||
ArgGroup::with_name("brightness_control")
|
||||
.args(&["set", "inc", "dec", "get", "zer", "ful"]),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("list")
|
||||
.short("l")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue