From df8de965608f3054c2fb33fde2795a1887c02b0b Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 5 Oct 2014 12:30:22 +0100
Subject: [PATCH] clarify usage of --

---
 runcron.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/runcron.c b/runcron.c
index 23c5265..8ae60f9 100644
--- a/runcron.c
+++ b/runcron.c
@@ -29,7 +29,7 @@ char *lock_dir = "/var/tmp";
 int usage() {
   fprintf(stderr,
           "%s v%s - a cron job wrapper\n"
-          "Usage: %s [<OPTIONS>] <COMMAND> [<ARGS>...]\n"
+          "Usage: %s [<OPTIONS>] [--] <COMMAND> [<ARGS>...]\n"
           "\n"
           "Known options:\n"
           "\n"
@@ -59,6 +59,9 @@ int usage() {
           "                     lock to be released, failing with an error if after SECONDS\n"
           "                     the lock could not be obtained. If set to 0 (the default),\n"
           "                     wait forever. Specifying this option implies --wait.\n"
+          "\n"
+          "If you are passing options to COMMAND, remember to use `--' to tell the runcron\n"
+          "option parser to stop interpreting options for itself.\n"
           "\n",
           PACKAGE, PACKAGE_VERSION, PACKAGE
           );
-- 
GitLab