I noticed this spacing in the --help output of 'who' that looked a bit
strange:
$ who --help
Usage: who [OPTION]... [ FILE | ARG1 ARG2 ]
Removing the spaces looks better, e.g., like this:
$ who --help
Usage: who [OPTION]... [FILE | ARG1 ARG2]
But I couldn't find any examples of a single argument or multiple
arguments combined like that. This looks more like what I expect, but
I'm not 100% sure about it, so I haven't pushed:
$ who --help
Usage: who [OPTION]... [FILE]
or: who [OPTION]... [ARG1 ARG2]
-- 8< --
* src/who.c (usage): Use two lines. Remove the extra spaces between the
argument and brackets.
---
src/who.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/who.c b/src/who.c
index 5b35b8bd7..4cef92e39 100644
--- a/src/who.c
+++ b/src/who.c
@@ -627,7 +627,11 @@ usage (int status)
emit_try_help ();
else
{
- printf (_("Usage: %s [OPTION]... [ FILE | ARG1 ARG2 ]\n"), program_name);
+ printf (_("\
+Usage: %s [OPTION]... [FILE]\n\
+ or: %s [OPTION]... [ARG1 ARG2]\n\
+"),
+ program_name, program_name);
fputs (_("\
Print information about users who are currently logged in.\n\
"), stdout);
--
2.55.0