Indentation of string arguments

This commit is contained in:
Benny Baumann 2021-07-14 19:20:16 +02:00 committed by BenBE
parent 0d85af2872
commit 68edf92434
2 changed files with 22 additions and 22 deletions

View File

@ -45,26 +45,26 @@ static void printVersionFlag(const char* name) {
static void printHelpFlag(const char* name) { static void printHelpFlag(const char* name) {
printf("%s " VERSION "\n" printf("%s " VERSION "\n"
COPYRIGHT "\n" COPYRIGHT "\n"
"Released under the GNU GPLv2.\n\n" "Released under the GNU GPLv2.\n\n"
"-C --no-color Use a monochrome color scheme\n" "-C --no-color Use a monochrome color scheme\n"
"-d --delay=DELAY Set the delay between updates, in tenths of seconds\n" "-d --delay=DELAY Set the delay between updates, in tenths of seconds\n"
"-F --filter=FILTER Show only the commands matching the given filter\n" "-F --filter=FILTER Show only the commands matching the given filter\n"
"-h --help Print this help screen\n" "-h --help Print this help screen\n"
"-H --highlight-changes[=DELAY] Highlight new and old processes\n" "-H --highlight-changes[=DELAY] Highlight new and old processes\n"
"-M --no-mouse Disable the mouse\n" "-M --no-mouse Disable the mouse\n"
"-p --pid=PID[,PID,PID...] Show only the given PIDs\n" "-p --pid=PID[,PID,PID...] Show only the given PIDs\n"
" --readonly Disable all system and process changing features\n" " --readonly Disable all system and process changing features\n"
"-s --sort-key=COLUMN Sort by COLUMN in list view (try --sort-key=help for a list)\n" "-s --sort-key=COLUMN Sort by COLUMN in list view (try --sort-key=help for a list)\n"
"-t --tree Show the tree view (can be combined with -s)\n" "-t --tree Show the tree view (can be combined with -s)\n"
"-u --user[=USERNAME] Show only processes for a given user (or $USER)\n" "-u --user[=USERNAME] Show only processes for a given user (or $USER)\n"
"-U --no-unicode Do not use unicode but plain ASCII\n" "-U --no-unicode Do not use unicode but plain ASCII\n"
"-V --version Print version info\n", name); "-V --version Print version info\n", name);
Platform_longOptionsUsage(name); Platform_longOptionsUsage(name);
printf("\n" printf("\n"
"Long options may be passed with a single dash.\n\n" "Long options may be passed with a single dash.\n\n"
"Press F1 inside %s for online help.\n" "Press F1 inside %s for online help.\n"
"See 'man %s' for more information.\n", name, name); "See 'man %s' for more information.\n", name, name);
} }
// ---------------------------------------- // ----------------------------------------

View File

@ -114,8 +114,8 @@ static bool PCPDynamicMeter_validateMeterName(char* key, const char* path, unsig
*end = '\0'; *end = '\0';
} else { } else {
fprintf(stderr, fprintf(stderr,
"%s: no closing brace on meter name at %s line %u\n\"%s\"\n", "%s: no closing brace on meter name at %s line %u\n\"%s\"\n",
pmGetProgname(), path, line, key); pmGetProgname(), path, line, key);
return false; return false;
} }
@ -131,8 +131,8 @@ static bool PCPDynamicMeter_validateMeterName(char* key, const char* path, unsig
} }
if (*p != '\0') { /* badness */ if (*p != '\0') { /* badness */
fprintf(stderr, fprintf(stderr,
"%s: invalid meter name at %s line %u\n\"%s\"\n", "%s: invalid meter name at %s line %u\n\"%s\"\n",
pmGetProgname(), path, line, key); pmGetProgname(), path, line, key);
return false; return false;
} }
return true; return true;