Skip to content

Commit

Permalink
fix help on default value for decimals.
Browse files Browse the repository at this point in the history
  • Loading branch information
crazii committed Apr 27, 2024
1 parent 230fa17 commit b28a02b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,10 @@ int main(int argc, char* argv[])
{
printf(" %-7s: %s", MAIN_Options[i].option, MAIN_Options[i].desc);
if (i != 0) {
printf(", default: %x.\n", MAIN_Options[i].value);
if(MAIN_Options[i].setcmd&MAIN_SETCMD_BASE10)
printf(", default: %d.\n", MAIN_Options[i].value);
else
printf(", default: %x.\n", MAIN_Options[i].value);
} else {
printf(".\n");
}
Expand Down

0 comments on commit b28a02b

Please sign in to comment.