mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Allow OPT to accept optional dashes before flags
This commit is contained in:
@@ -53,6 +53,9 @@ void opt_W(char const *flag) {
|
||||
}
|
||||
|
||||
void opt_Parse(char const *s) {
|
||||
if (s[0] == '-') {
|
||||
++s;
|
||||
}
|
||||
switch (s[0]) {
|
||||
case 'b':
|
||||
if (strlen(&s[1]) == 2) {
|
||||
|
||||
Reference in New Issue
Block a user