From 77e46d549567dc3ee8d85a93bc8ac4531aaa7817 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Tue, 22 Aug 2023 16:42:57 +0200 Subject: [PATCH] daemon: remove 'help' detection in command line arguments This is superfluous and prevents using config files with "-h" in their path. --- src/bin/daemon.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/bin/daemon.rs b/src/bin/daemon.rs index 0856cfb7..3c5c5d8e 100644 --- a/src/bin/daemon.rs +++ b/src/bin/daemon.rs @@ -19,10 +19,7 @@ fn parse_args(args: Vec) -> Option { return None; } - let is_help = args - .iter() - .any(|arg| arg.contains("help") || arg.contains("-h")); - if args.len() != 3 || is_help { + if args.len() != 3 { print_help_exit(); }