diff --git a/conf b/conf new file mode 100644 index 0000000..4bc89b5 --- /dev/null +++ b/conf @@ -0,0 +1 @@ +tls true diff --git a/src/args.rs b/src/args.rs index 22a28b5..05c3529 100644 --- a/src/args.rs +++ b/src/args.rs @@ -129,7 +129,9 @@ pub fn parse>(args: &[T]) -> Result { "-p" | "--print" | "-print" => cfg.mode = Mode::Print, "-l" | "--local" | "-local" => cfg.start = "gopher://127.0.0.1:7070".into(), "-C" | "--no-config" | "-no-config" => {} - "-c" | "--config" | "-config" => {} + "-c" | "--config" | "-config" => { + iter.next(); // skip arg + } arg if arg.starts_with("--config=") || arg.starts_with("-config=") => {} "-s" | "--tls" | "-tls" => { if set_notls {