mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-12-27 07:30:23 +05:30
main.c: reformat help text for improved readability in source code
This commit is contained in:
parent
ff06576b72
commit
44bc736d96
89
src/main.c
89
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 <file to corrupt> [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 <file to corrupt> [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;
|
||||
|
Loading…
Reference in New Issue
Block a user