Merge pull request #9 from ejls/patch-2
Fix argument requirement in getopt_long
This commit is contained in:
commit
ca886519a3
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