Kingcom / armips

An assembler for various ARM and MIPS platforms. Builds available at http://buildbot.orphis.net/armips/
MIT License
363 stars 77 forks source link

Command line arguments -equ and -strequ case weirdness #142

Closed Zeturic closed 6 years ago

Zeturic commented 6 years ago

For example, if test.asm contains just:

.warning STRING

And you invoke it with armips test.asm -strequ STRING something, you get an error complaining that the label string does not exist. It works if you invoke it with armips test.asm -strequ string something instead.

It seems like the command line argument parser needs to lowercase the names (like is done in other contexts, such as a literal EQU in source) to make it properly case-insensitive, as it is elsewhere.

This applies to both -equ and -strequ, as the title implies.

sp1187 commented 6 years ago

Fixed by 8632b9ffd26336b588d368fcbca1c6457510af87.