fputs(USAGE_HEADER, out);
fprintf(out,
- _(" %s [options] [-p PID]\n"), program_invocation_short_name);
+ _(" %s [options] [--<resource>=<limit>] [-p PID]\n"), program_invocation_short_name);
fprintf(out,
- _(" %s [options] COMMAND\n"), program_invocation_short_name);
+ _(" %s [options] [--<resource>=<limit>] COMMAND\n"), program_invocation_short_name);
fputs(USAGE_SEPARATOR, out);
fputs(_("Show or change the resource limits of a process.\n"), out);
- fputs(_("\nGeneral Options:\n"), out);
+ fputs(USAGE_OPTIONS, out);
fputs(_(" -p, --pid <pid> process id\n"
" -o, --output <list> define which output columns to use\n"
" --noheadings don't print headings\n"
), out);
printf(USAGE_HELP_OPTIONS(24));
- fputs(_("\nResources Options:\n"), out);
+ fputs(_("\nResources:\n"), out);
fputs(_(" -c, --core maximum size of core files created\n"
" -d, --data maximum size of a process's data segment\n"
" -e, --nice maximum nice priority allowed to raise\n"
" -y, --rttime CPU time in microseconds a process scheduled\n"
" under real-time scheduling\n"), out);
+ fputs(USAGE_ARGUMENTS, out);
+ fputs(_(
+ " <limit> is defined as a range soft:hard, soft:, :hard or a value to\n"
+ " define both limits (e.g. -e=0:10 -r=:10).\n"), out);
+
fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help));