From fe878fbbd80f2e75cc46876a6149362d58ecd403 Mon Sep 17 00:00:00 2001 From: Mira Ressel Date: Sat, 13 Mar 2021 16:40:56 +0100 Subject: s6-log: Recommend the usage of a -- argument separator Logging scripts will commonly start with a -, which will trigger a parsing error that might not be obvious to users when no argument separator is used. --- doc/s6-log.html | 2 +- src/daemontools-extras/s6-log.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/s6-log.html b/doc/s6-log.html index 158dd57..c0e5313 100644 --- a/doc/s6-log.html +++ b/doc/s6-log.html @@ -27,7 +27,7 @@ with full POSIX regular expression support.

Interface

-     s6-log [ -d notif ] [ -q | -v ] [ -b ] [ -p ] [ -l linelimit ] logging script
+     s6-log [ -d notif ] [ -q | -v ] [ -b ] [ -p ] [ -l linelimit ] [ -- ] logging script
 

diff --git a/src/daemontools-extras/s6-log.c b/src/daemontools-extras/s6-log.c index 7959222..798422d 100644 --- a/src/daemontools-extras/s6-log.c +++ b/src/daemontools-extras/s6-log.c @@ -39,7 +39,7 @@ #include #endif -#define USAGE "s6-log [ -d notif ] [ -q | -v ] [ -b ] [ -p ] [ -l linelimit ] logging_script" +#define USAGE "s6-log [ -d notif ] [ -q | -v ] [ -b ] [ -p ] [ -l linelimit ] [ -- ] logging_script" #define dieusage() strerr_dieusage(100, USAGE) #define dienomem() strerr_diefu1sys(111, "stralloc_catb") -- cgit v1.2.3