From 36a7ddd4ae284cc2a0ea1942456dc8a93058c3d9 Mon Sep 17 00:00:00 2001 From: Doan Tran Cong Danh Date: Tue, 5 Nov 2019 22:30:39 +0700 Subject: [PATCH] xbps-uchroot: document end of options argument Signed-off-by: Doan Tran Cong Danh --- bin/xbps-uchroot/main.c | 2 +- bin/xbps-uchroot/xbps-uchroot.1 | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/xbps-uchroot/main.c b/bin/xbps-uchroot/main.c index c232de8e..f9f8f948 100644 --- a/bin/xbps-uchroot/main.c +++ b/bin/xbps-uchroot/main.c @@ -86,7 +86,7 @@ static SIMPLEQ_HEAD(bindmnt_head, bindmnt) bindmnt_queue = static void __attribute__((noreturn)) usage(const char *p) { - printf("Usage: %s [-b src:dest] [-O -t -o ] []\n\n" + printf("Usage: %s [-b src:dest] [-O -t -o ] [--] []\n\n" "-b src:dest Bind mounts into / (may be specified multiple times)\n" "-O Creates a tempdir and mounts read-only via overlayfs\n" "-t Creates tempdir and mounts it on tmpfs (for use with -O)\n" diff --git a/bin/xbps-uchroot/xbps-uchroot.1 b/bin/xbps-uchroot/xbps-uchroot.1 index b3df5322..acd4a498 100644 --- a/bin/xbps-uchroot/xbps-uchroot.1 +++ b/bin/xbps-uchroot/xbps-uchroot.1 @@ -52,6 +52,12 @@ This makes the temporary directory to be mounted in tmpfs, so that everything is in RAM. Note that this is only useful if used with the .Fl O option (overlayfs). +.It Fl - +Stop interpreting following arguments as options. +This option is useful if some of +.Ar ARGS +are options passed to +.Ar COMMAND . .El .Sh SECURITY The