Fixed #121
parse_config will be called before reading the arguments, just like get_info
This commit is contained in:
parent
833a2234c7
commit
075e6e73d5
1 changed files with 1 additions and 2 deletions
|
@ -124,6 +124,7 @@ int main(int argc, char *argv[])
|
|||
{"list", no_argument, NULL, 'l'},
|
||||
{NULL, 0, NULL, 0}};
|
||||
get_info();
|
||||
parse_config();
|
||||
while ((opt = getopt_long(argc, argv, "ac:d:hi::l", long_options, NULL)) != -1)
|
||||
{
|
||||
switch (opt)
|
||||
|
@ -155,8 +156,6 @@ int main(int argc, char *argv[])
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (argc == 1)
|
||||
parse_config();
|
||||
if ((argc == 1 && ascii_image_flag == 0) || (argc > 1 && ascii_image_flag == 0))
|
||||
{
|
||||
printf("\n"); // print a new line
|
||||
|
|
Loading…
Reference in a new issue