foxpy / qc

Quad C: Custom Cruel C Crate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

argument parsing library treats arguments with similar prefix the same way

foxpy opened this issue · comments

commented

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.