Remove manual help from clap parser

This commit is contained in:
Jackson Coxson
2025-02-01 16:08:23 -07:00
parent 235de5dab9
commit f6c32fe226
6 changed files with 1 additions and 36 deletions

View File

@@ -26,7 +26,7 @@ pub async fn get_provider(
return Err(format!("Device not found: {e:?}"));
}
};
Box::new(dev.to_provider(UsbmuxdAddr::default(), 0, label))
Box::new(dev.to_provider(UsbmuxdAddr::default(), 1, label))
} else if host.is_some() && pairing_file.is_some() {
let host = match IpAddr::from_str(host.unwrap()) {
Ok(h) => h,

View File

@@ -38,13 +38,6 @@ async fn main() {
.help("Show about information")
.action(clap::ArgAction::SetTrue),
)
.arg(
Arg::new("help")
.short('h')
.long("help")
.help("Show this help message")
.action(clap::ArgAction::SetTrue),
)
.get_matches();
if matches.get_flag("about") {

View File

@@ -35,13 +35,6 @@ async fn main() {
.help("Show about information")
.action(clap::ArgAction::SetTrue),
)
.arg(
Arg::new("help")
.short('h')
.long("help")
.help("Show this help message")
.action(clap::ArgAction::SetTrue),
)
.get_matches();
if matches.get_flag("about") {

View File

@@ -36,13 +36,6 @@ async fn main() {
.help("Show about information")
.action(clap::ArgAction::SetTrue),
)
.arg(
Arg::new("help")
.short('h')
.long("help")
.help("Show this help message")
.action(clap::ArgAction::SetTrue),
)
.get_matches();
if matches.get_flag("about") {

View File

@@ -36,13 +36,6 @@ async fn main() {
.help("Show about information")
.action(clap::ArgAction::SetTrue),
)
.arg(
Arg::new("help")
.short('h')
.long("help")
.help("Show this help message")
.action(clap::ArgAction::SetTrue),
)
.get_matches();
if matches.get_flag("about") {

View File

@@ -38,13 +38,6 @@ async fn main() {
.help("Show about information")
.action(clap::ArgAction::SetTrue),
)
.arg(
Arg::new("help")
.short('h')
.long("help")
.help("Show this help message")
.action(clap::ArgAction::SetTrue),
)
.get_matches();
if matches.get_flag("about") {