1
Fork 0

Fix argument requirement in getopt_long

This commit is contained in:
Étienne Simon 2019-06-26 23:22:20 +02:00 committed by GitHub
parent b72a596381
commit 838a22f7ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -40,7 +40,7 @@ int main(int argc, char *argv[]) {
int flags = 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) {
case 'p':
flags |= FLAG_PRETTY_PRINT;