Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0df77d0

Browse files
committed
Optional argument for boolean options
1 parent 9311590 commit 0df77d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/configuration.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ option_has_arg(char type)
107107
{
108108
case 'b':
109109
case 'B':
110-
return no_argument;
110+
return optional_argument;
111111
default:
112112
return required_argument;
113113
}

0 commit comments

Comments
 (0)