From 94aeb31299e62cd9030f3f3df5b99babfc289b7d Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 13 Feb 2024 03:31:45 +0000 Subject: driver: --info mode: make the argument optional, not mandatory. --- src/driver/slbt_split_argv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/driver') diff --git a/src/driver/slbt_split_argv.c b/src/driver/slbt_split_argv.c index 946468e..04800d8 100644 --- a/src/driver/slbt_split_argv.c +++ b/src/driver/slbt_split_argv.c @@ -163,7 +163,7 @@ int slbt_split_argv( } /* missing compiler? */ - if (!ctx.unitidx && !help && !version && !finish && !features && !dumpmachine && !altmode && !aropt) { + if (!ctx.unitidx && !help && !info && !version && !finish && !features && !dumpmachine && !altmode && !aropt) { if (flags & SLBT_DRIVER_VERBOSITY_ERRORS) slbt_dprintf(fderr, "%s: error: is missing.\n", @@ -323,7 +323,7 @@ int slbt_split_argv( if (ctx.unitidx) { (void)0; - } else if (help || version || features || dumpmachine || altmode) { + } else if (help || version || features || info || dumpmachine || altmode) { for (i=0; itargv[i] = argv[i]; -- cgit v1.2.3