Skip to content

Commit b99b053

Browse files
authored
fix: CLI regression on config path (#457)
* Fix libgit2-sys vuln by upgrading vergen * Remove atty dependency (unmaintained) * Update clap to version 4 * Remove rustls-pemfile dependency (unmaintained) * Fix rustls issues Restore rustls-native-certs and upgrade version Switch to tokio_rustlrs pki_types * Run cargo fmt * Test single threading tests * Fix use of rustls-native-certs * Update packages to resolve vulnerabilities * Fix CLI regression and add test
1 parent 139bda6 commit b99b053

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/cli.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub struct Cli {
5050
///
5151
/// Running as a client or a server is automatically determined
5252
/// according to the configuration file.
53-
#[arg(value_name = "CONFIG")]
53+
#[arg(id = "CONFIG", value_name = "CONFIG")]
5454
pub config_path: Option<std::path::PathBuf>,
5555

5656
/// Run as a server
@@ -73,3 +73,14 @@ pub struct Cli {
7373
)]
7474
pub genkey: Option<Option<KeypairType>>,
7575
}
76+
77+
#[cfg(test)]
78+
mod tests {
79+
use super::*;
80+
use clap::CommandFactory;
81+
82+
#[test]
83+
fn cli_is_valid() {
84+
Cli::command().debug_assert();
85+
}
86+
}

0 commit comments

Comments
 (0)