procstat(8): clarify program usage

- Visualize mutually exclusive options and their corresponding
  arguments.
- Try to make the subtleties that are expressed in the code, and
  potentially in the manpages, more apparent.
This commit is contained in:
Enji Cooper 2017-07-20 05:43:48 +00:00
parent 2df7231dbf
commit 8490e4c207
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321283

View File

@ -50,12 +50,23 @@ static void
usage(void)
{
xo_error("usage: procstat [--libxo] [-CHhn] [-M core] "
xo_error(
"usage: procstat [--libxo] [-Hhn] [-M core] "
"[-N system] [-w interval]\n"
" [-b | -c | -e | -f | -i | -j | -k | "
"-l | -L | -r | -s | \n"
" -S | -t | -v | -x]\n"
" [-a | pid | core ...]\n");
" [-S | -b | -c | -e | -i | -j | -k | -kk | "
"-l | -r | -s | \n"
" -t | -v | -x]\n"
" [-a | pid ... | core ...]\n"
" procstat [--libxo] -Cf [-hn] [-M core] "
"[-N system] [-a | pid ... | core ...]\n"
" [-S | -b | -c | -e | -i | -j | -k | -kk | "
"-l | -r | -s | \n"
" procstat [--libxo] -L [-hn] [-M core] "
"[-N system] [-w interval]\n"
" [-S | -b | -c | -e | -i | -j | -k | -kk | "
"-l | -r | -s | \n"
" -t | -v | -x]\n"
" [core ...]\n");
xo_finish();
exit(EX_USAGE);
}