From 375f1517cddc43681be0854dc6aac76927c3e4ce Mon Sep 17 00:00:00 2001 From: sobrado Date: Sat, 18 May 2024 13:08:09 +0000 Subject: [PATCH] prefixing flags to ps(1) by a hyphen is optional; while here, make synopsis fit in a 80-column display. ok jmc@ --- bin/ps/ps.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/ps/ps.c b/bin/ps/ps.c index fe62dad044e..b43765f422a 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ps.c,v 1.80 2023/11/10 09:17:02 kn Exp $ */ +/* $OpenBSD: ps.c,v 1.81 2024/05/18 13:08:09 sobrado Exp $ */ /* $NetBSD: ps.c,v 1.15 1995/05/18 20:33:25 mycroft Exp $ */ /*- @@ -623,9 +623,9 @@ forest_sort(struct pinfo *ki, int items) static void usage(void) { - fprintf(stderr, "usage: %s [-AacefHhjkLlmrSTuvwx] [-M core] [-N system]" - " [-O fmt] [-o fmt] [-p pid]\n", __progname); - fprintf(stderr, "%-*s[-t tty] [-U user] [-W swap]\n", + fprintf(stderr, "usage: %s [[-]AacefHhjkLlmrSTuvwx] [-M core]" + " [-N system] [-O fmt] [-o fmt]\n", __progname); + fprintf(stderr, "%-*s[-p pid] [-t tty] [-U user] [-W swap]\n", (int)strlen(__progname) + 8, ""); exit(1); } -- 2.20.1