foxpy / qc

Quad C: Custom Cruel C Crate
MIT License
4 stars 0 forks source link

argument parsing library treats arguments with similar prefix the same way #33

Closed foxpy closed 3 years ago

foxpy commented 3 years ago

Imagine code like this:

qc_args_unsigned(args, "pref", &num, NULL);

This way, all arguments like --prefix=5, --pref=3, --preffffffffff=4 and so on match, leading to surprising bugs.