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:
parent
cb8c06286c
commit
0380d97c0f
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user