From c4c3b5bf814fc2b056e9940d2c5830ec41c6dfc5 Mon Sep 17 00:00:00 2001 From: huangxin Date: Mon, 6 Feb 2023 09:56:04 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E5=90=AF=E5=8A=A8=E5=8F=82=E6=95=B0?= =?UTF-8?q?=20-c=20=E6=8C=87=E5=AE=9A=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=8F=AF=E9=80=89=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- srcs/libs/cmdline/cmd_menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcs/libs/cmdline/cmd_menu.c b/srcs/libs/cmdline/cmd_menu.c index 6eab2df..759014c 100644 --- a/srcs/libs/cmdline/cmd_menu.c +++ b/srcs/libs/cmdline/cmd_menu.c @@ -482,7 +482,7 @@ int menu_run(int argc, char **argv) { ******************************************************************/ // clang-format off arg_rex_t *cmd1 = arg_rex1(NULL, NULL, "start", NULL, REG_ICASE, NULL); - arg_file_t *cfgfile = arg_file1("c", "config", "", "\tSpecify the current application configuration file path"); + arg_file_t *cfgfile = arg_filen("c", "config", "[file]", 0, 1, "\tSpecify the current application configuration file path"); arg_file_t *cfgdir = arg_file1("d", "directory", "", "\tSpecify the configuration directory path"); arg_str_t *key1 = arg_str0("k", "key", "Key", "\tSpecify the configuration file cryptographic key."); arg_lit_t *helpCmd1 = arg_lit0("h", "help", NULL); @@ -564,7 +564,7 @@ int menu_run(int argc, char **argv) { #ifdef OPENDHCPD_ON arg_rex_t *cmd7 = arg_rex1(NULL, NULL, "dhcpd", NULL, REG_ICASE, NULL); arg_lit_t *operate7 = arg_lit0("m", "mode", "\tService works on verbatim mode."); - arg_file_t *cfgfile7 = arg_file1("c", "config", "", "\tSpecify the current application configuration file path"); + arg_file_t *cfgfile7 = arg_filen("c", "config", "[file]", 0, 1, "\tSpecify the current application configuration file path"); arg_file_t *cfgdir7 = arg_file1("d", "directory", "", "\tSpecify the configuration directory path"); arg_str_t *key7 = arg_str0("k", "key", "Key", "\tSpecify the configuration file cryptographic key."); arg_file_t *inifile = arg_filen("i", "ini", "", 0, 1, "\tSpecify the dhcpd service configuration file path");