From b824a6433c353e0c1d8c16a3db4bba5097874828 Mon Sep 17 00:00:00 2001 From: pythcoiner Date: Tue, 24 Oct 2023 20:33:54 +0200 Subject: [PATCH] lianad add msg if wrong arg Co-authored-by: Antoine Poinsot --- src/bin/daemon.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/daemon.rs b/src/bin/daemon.rs index 3c5c5d8e..51e3c134 100644 --- a/src/bin/daemon.rs +++ b/src/bin/daemon.rs @@ -19,6 +19,11 @@ fn parse_args(args: Vec) -> Option { return None; } + if args[1] != "--conf" { + eprintln!("Only a single command line argument is supported: --conf. All other configuration parameters must be specified in the configuration file."); + print_help_exit(); + } + if args.len() != 3 { print_help_exit(); }