From 44bc736d96d3fd4cf5a1ce04afdf4ffaee1bf384 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Fri, 22 Nov 2024 21:19:56 +0300 Subject: [PATCH] main.c: reformat help text for improved readability in source code --- src/main.c | 89 ++++++++++++++++++++++++++---------------------------- 1 file changed, 43 insertions(+), 46 deletions(-) diff --git a/src/main.c b/src/main.c index 0ee56ef..27c3ec2 100644 --- a/src/main.c +++ b/src/main.c @@ -189,58 +189,55 @@ int main(int argc, char** argv) { if (argc < 2 || args_match(argv[argc - 1], ARGS_HELP)) { char* program_name = my_basename(argv[0]); printf( - "Usage: %s [parameters] [options]\n" - " OR\n" - " %s <-h | -help | --help>\n" - "\n" - "Both parameters and options are optional.\n" - "\n" - "[parameters]:\n" - " -probability : Determines the likelihood of a neutron " - "radiation event\n" - " occurring. The higher the value, the more likely " - "the bits are\n" - " to be corrupted.\n" - " Value range: [1..%" PRIu16 "]\n" - " Default value: %" PRIu16 "\n" - "\n" - " -threshold : Controls the amount of change allowed for each " - "byte. The\n" - " higher the value, the more extensive the " - "modifications will be.\n" - " Value range: [1.." INT2STR(CHAR_BIT) "]\n" - " Default value: %" PRIu8 "\n" - "\n" - " -passes : Determines the number of times the file will be " - "processed. The\n" - " higher the value, the longer the overall " - "processing time will\n" - " be.\n" - " Value range: [1..%" PRIuMAX "]\n" - " Default value: %" PRIuMAX "\n" - "\n" - "[options]:\n" - " -noconfirm : (Caution!) Do not ask user to confirm " - "deletion\n" - "\n" - " -contents : Only corrupt contents of files (PNG, BMP, WAV)\n" - "\n" - " -line-endings : Preserve line endings\n" - "\n" - " -printable : Work only with printable ASCII characters\n" - "\n" - " -seed : Specify a 32-bit seed for the PRNG. If you want " - "to keep it\n" - " random, set the option to `random`.\n" - "\n" - " -verbose : Enable verbose output\n", +"Usage: %s [parameters] [options]\n" +" OR\n" +" %s <-h | -help | --help>\n" +"\n" +"Both parameters and options are optional.\n" +"\n" +"[parameters]:\n" +" -probability : Determines the likelihood of a neutron radiation event\n" +" occurring. The higher the value, the more likely the bits " +"are\n" +" to be corrupted.\n" +" Value range: [1..%" PRIu16 "]\n" +" Default value: %" PRIu16 "\n" +"\n" +" -threshold : Controls the amount of change allowed for each byte. The\n" +" higher the value, the more extensive the modifications will " +"be.\n" +" Value range: [1.." INT2STR(CHAR_BIT) "]\n" +" Default value: %" PRIu8 "\n" +"\n" +" -passes : Determines the number of times the file will be processed. " +"The\n" +" higher the value, the longer the overall processing time " +"will\n" +" be.\n" +" Value range: [1..%" PRIuMAX "]\n" +" Default value: %" PRIuMAX "\n" +"\n" +"[options]:\n" +" -noconfirm : (Caution!) Do not ask user to confirm deletion\n" +"\n" +" -contents : Only corrupt contents of files (PNG, BMP, WAV)\n" +"\n" +" -line-endings : Preserve line endings\n" +"\n" +" -printable : Work only with printable ASCII characters\n" +"\n" +" -seed : Specify a 32-bit seed for the PRNG. If you want to keep it\n" +" random, set the option to `random`.\n" +"\n" +" -verbose : Enable verbose output\n", program_name, program_name, UINT16_MAX, probability, threshold, (uintmax_t) SIZE_MAX, - passes); + passes + ); free(program_name); return EXIT_FAILURE;