From 72eca0b87e1b61313ccbe118f08729dc573f420c Mon Sep 17 00:00:00 2001 From: Konstantin Pereiaslov Date: Sun, 7 Jan 2024 13:05:07 -0600 Subject: [PATCH] Update spacing in usage --- arguments_parsing.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/arguments_parsing.c b/arguments_parsing.c index 815132e..f57082f 100644 --- a/arguments_parsing.c +++ b/arguments_parsing.c @@ -20,23 +20,23 @@ const long START_MONITOR_AFTER_MIN_SUPPORTED_VALUE = 0; void print_usage(char *binary_name) { printf("Usage: %s [OPTIONS] [shell_command_to_run] [shell_command_arguments]\n", binary_name); printf("\nOptions:\n"); - printf(" --timeout, -t Set the user idle time after which the process\n" - " can be resumed in seconds. (default: 300 seconds).\n\n"); - printf(" --pid, -p Monitor an existing process. When this option is used,\n" - " shell_command_to_run should not be passed.\n\n"); - printf(" --start-monitor-after, -a Set an initial delay in milliseconds before monitoring\n" - " starts. During this time the process runs unrestricted.\n" - " This helps to catch quick errors. (default: 300 ms).\n\n"); - printf(" --pause-method, -m Specify method for pausing the process when the user is\n" - " not idle. Available Options (default: SIGSTOP): \n" - " SIGTSTP (can be ignored by the program),\n" - " SIGSTOP (cannot be ignored).\n\n"); - printf(" --quiet, -q Suppress all output from %s except errors and only\n" - " display output from the command that is running.\n" - " No output if --pid options is used.\n\n", binary_name); - printf(" --verbose, -v Enable verbose output for monitoring.\n"); - printf(" --debug Enable debugging output.\n"); - printf(" --version, -V Print the program version information.\n"); + printf(" --timeout, -t Set the user idle time after which the process\n" + " can be resumed in seconds. (default: 300 seconds).\n\n"); + printf(" --pid, -p Monitor an existing process. When this option is used,\n" + " shell_command_to_run should not be passed.\n\n"); + printf(" --start-monitor-after, -a Set an initial delay in milliseconds before monitoring\n" + " starts. During this time the process runs unrestricted.\n" + " This helps to catch quick errors. (default: 300 ms).\n\n"); + printf(" --pause-method, -m Specify method for pausing the process when the user is\n" + " not idle. Available Options (default: SIGSTOP): \n" + " SIGTSTP (can be ignored by the program),\n" + " SIGSTOP (cannot be ignored).\n\n"); + printf(" --quiet, -q Suppress all output from %s except errors and only\n" + " display output from the command that is running.\n" + " No output if --pid options is used.\n\n", binary_name); + printf(" --verbose, -v Enable verbose output for monitoring.\n"); + printf(" --debug Enable debugging output.\n"); + printf(" --version, -V Print the program version information.\n"); } void print_version() {