pik-piam / lucode2

A collection of tools which allow to manipulate and analyze code.
Other
0 stars 16 forks source link

in readArgs don't care whether test=a or --test=a is specified #207

Closed orichters closed 2 months ago

orichters commented 2 months ago

Instead of dropping everything starting with -, explicitly remove the boolean flags (that cannot contain a = because of the grep before) from the arguments and then remove all -- at the beginning to not care whether you had --test=a or test=a (or ------test=a :D). Also skip the matching if .argv = ""