Improve error message
This commit is contained in:
@ -149,7 +149,7 @@ int main(int argc, char *const *argv) {
|
||||
} break;
|
||||
case ':':
|
||||
if (isprint(optopt)) {
|
||||
eprintf("option requires argument: -%c", optopt);
|
||||
eprintf("option requires argument: %c", optopt);
|
||||
} else {
|
||||
eprintf("option requires argument: 0x%x", optopt);
|
||||
}
|
||||
@ -157,7 +157,7 @@ int main(int argc, char *const *argv) {
|
||||
break;
|
||||
case '?':
|
||||
if (isprint(optopt)) {
|
||||
eprintf("unknown option: -%c", optopt);
|
||||
eprintf("unknown option: %c", optopt);
|
||||
} else {
|
||||
eprintf("unknown option: 0x%x", optopt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user