diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-02-12 01:55:55 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-02-12 01:55:55 +0000 |
commit | 3be351795d5aed9221b9621b7e4f124e656c830d (patch) | |
tree | edc85e08a86424dd4c4c3a3060233226c18d598c | |
parent | 6faa2e6a2ecdb504c305d0a0cb76ea6240da105d (diff) | |
download | execline-3be351795d5aed9221b9621b7e4f124e656c830d.tar.gz execline-3be351795d5aed9221b9621b7e4f124e656c830d.tar.xz execline-3be351795d5aed9221b9621b7e4f124e656c830d.zip |
Fix multicall usage
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r-- | doc/index.html | 2 | ||||
-rwxr-xr-x | tools/gen-multicall.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/index.html b/doc/index.html index 65fb00b..9ce9b9b 100644 --- a/doc/index.html +++ b/doc/index.html @@ -203,7 +203,7 @@ the previous versions of execline and the current one. </li> (Multicall configuration) </p> <ul> -<li><a href="execline.html">The <tt>execline</tt> program</a></li> +<li><a href="execline.html">The <tt>execline</tt> multicall binary</a></li> </ul> <h3> Provided scripts: example <tt>.profile</tt> replacement </h3> diff --git a/tools/gen-multicall.sh b/tools/gen-multicall.sh index 070af4e..1d3d9fe 100755 --- a/tools/gen-multicall.sh +++ b/tools/gen-multicall.sh @@ -74,13 +74,13 @@ cat <<EOF } ; #define USAGE "execline subcommand [ arguments... ]" -#define dieusage() strerr_dief1x(100, USAGE) +#define dieusage() strerr_dieusage(100, USAGE) static int execline_main (int argc, char **argv, char const *const *envp) { execline_app const *p ; PROG = "execline" ; - if (!argc) dieusage() ; + if (argc < 2) dieusage() ; p = bsearch(argv[1], execline_apps, sizeof(execline_apps) / sizeof(execline_app), sizeof(execline_app), &execline_app_cmp) ; if (!p) strerr_dief2x(100, "unknown subcommand: ", argv[1]) ; return (*(p->mainf))(argc-1, argv+1, envp) ; |