Fix argument requirement in getopt_long
This commit is contained in:
parent
b72a596381
commit
838a22f7ee
2
main.c
2
main.c
@ -40,7 +40,7 @@ int main(int argc, char *argv[]) {
|
|||||||
int flags = 0;
|
int flags = 0;
|
||||||
|
|
||||||
int c = 0;
|
int c = 0;
|
||||||
while ((c = getopt_long(argc, argv, "f:e:pmst", options, NULL)) != -1) {
|
while ((c = getopt_long(argc, argv, "fepmst", options, NULL)) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'p':
|
case 'p':
|
||||||
flags |= FLAG_PRETTY_PRINT;
|
flags |= FLAG_PRETTY_PRINT;
|
||||||
|
Loading…
Reference in New Issue
Block a user