From 628cab7cde49bfb0387a51d5390d65921d7c3dc4 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Sat, 12 Jan 2008 22:35:50 -0700 Subject: renice: detect errors in arguments, add -v, -h and long options * renice was using atoi(), which does no error detection, meaning that: "renice +20 blah" was accepted as valid. * add -h | --help * add -v | --version * add long options for -p, -u and -g * cleanup coding style Addresses-Debian-Bug: #385245 Co-Author: Karel Zak Signed-off-by: LaMont Jones Signed-off-by: Karel Zak --- sys-utils/renice.1 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sys-utils/renice.1') diff --git a/sys-utils/renice.1 b/sys-utils/renice.1 index 06462e8ee..3c20d6eb6 100644 --- a/sys-utils/renice.1 +++ b/sys-utils/renice.1 @@ -52,6 +52,8 @@ .Op Fl u .Ar user ... .Oc +.Nm renice +.Ad Fl h | Fl v .Sh DESCRIPTION .Nm Renice alters the @@ -72,18 +74,22 @@ their process ID's. Options supported by .Nm renice : .Bl -tag -width Ds -.It Fl g +.It Fl g, Fl Fl pgrp Force .Ar who parameters to be interpreted as process group ID's. -.It Fl u +.It Fl u, Fl Fl user Force the .Ar who parameters to be interpreted as user names. -.It Fl p +.It Fl p, Fl Fl pid Resets the .Ar who interpretation to be (the default) process ID's. +.It Fl v, Fl Fl version +Print version. +.It Fl h, Fl Fl help +Print help. .El .Pp For example, -- cgit v1.2.3-55-g7522