mirror of
https://github.com/ksherlock/merlin-utils.git
synced 2024-12-21 20:29:16 +00:00
bug fix
This commit is contained in:
parent
671c81a754
commit
b52bda4fb6
6
main.cpp
6
main.cpp
@ -133,7 +133,8 @@ int main(int argc, char **argv) {
|
||||
case 'X': express = false; break;
|
||||
case 'C': compress = false; break;
|
||||
case 'D': add_define(optarg); break;
|
||||
case 'v': verbose = true;
|
||||
case 'v': verbose = true; break;
|
||||
case 'S': script = true; break;
|
||||
case ':':
|
||||
case '?':
|
||||
default:
|
||||
@ -145,8 +146,7 @@ int main(int argc, char **argv) {
|
||||
argv += optind;
|
||||
argc -= optind;
|
||||
|
||||
if (!argc) usage(EX_USAGE);
|
||||
|
||||
if (!script && !argc) usage(EX_USAGE);
|
||||
if (script && argc > 1) usage(EX_USAGE);
|
||||
if (argc == 1 && is_S(*argv)) script = true;
|
||||
|
||||
|
@ -507,7 +507,7 @@ operand:
|
||||
|
||||
void evaluate(label_t label, opcode_t opcode, operand_t operand);
|
||||
|
||||
evaluate(label, opcode, opcode);
|
||||
evaluate(label, opcode, operand);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user