update help
This commit is contained in:
parent
c900a0444f
commit
dc33e46e24
4
njvm.c
4
njvm.c
@ -21,7 +21,7 @@ void version(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void help(void) {
|
void help(void) {
|
||||||
printf("usage: ./njvm [option] [option] ...\n\t--version\tshow version and exit\n\t--help\t\tshow this help and exit\n");
|
printf("Usage: ./njvm [options] <code file>\n\t--debug\tstart virtual machine in debug mode\n\t--version\tshow version and exit\n\t--help\t\tshow this help and exit\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void execute(struct program program) {
|
void execute(struct program program) {
|
||||||
@ -131,7 +131,7 @@ int main(int argc, char *argv[]) {
|
|||||||
printProgram(program);
|
printProgram(program);
|
||||||
execute(program);
|
execute(program);
|
||||||
} else {
|
} else {
|
||||||
printf("Error: no program selected\n");
|
printf("Error: no code file specified\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
// Stopped
|
// Stopped
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user