Change single connection mode to CLI arg instead of forced in debug mode

This commit is contained in:
NGnius (Graham) committed 2025-03-16 09:37:16 -04:00
1 parent ec565e904b
commit 792585a031
18 files changed
+81 -81

No files matched your search

+3 -3
View File
@@ -11,9 +11,9 @@ pub struct CliArgs {
#[arg(long, default_value_t = {"127.0.0.1".to_string()})]
pub ip: String,
/// Socket read tries before giving up (0 to never give up)
#[arg(long, default_value_t = 5)]
pub retries: usize,
/// Handle one connection and then exit
#[arg(short = '1', long)]
pub once: bool,
}
impl CliArgs {