1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-12-27 07:30:23 +05:30

main.c: CLI: usage: add help case

This commit is contained in:
Intel A80486DX2-66 2024-09-22 12:55:05 +03:00
parent cb8c06286c
commit 0380d97c0f
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -190,6 +190,8 @@ int main(int argc, char** argv) {
char* program_name = my_basename(argv[0]); char* program_name = my_basename(argv[0]);
printf( printf(
"Usage: %s <file to corrupt> [parameters] [options]\n" "Usage: %s <file to corrupt> [parameters] [options]\n"
" OR\n"
" %s <-h | -help | --help>\n"
"\n" "\n"
"Both parameters and options are optional.\n" "Both parameters and options are optional.\n"
"\n" "\n"
@ -232,6 +234,7 @@ int main(int argc, char** argv) {
"to keep it\n" "to keep it\n"
" random, set the option to `random`.\n", " random, set the option to `random`.\n",
program_name, program_name,
program_name,
UINT16_MAX, UINT16_MAX,
probability, probability,
threshold, threshold,