1

Merge pull request #9 from ejls/patch-2

Fix argument requirement in getopt_long
This commit is contained in:
Alex Yatskov 2019-06-27 15:10:15 -07:00 committed by GitHub
commit ca886519a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;