mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 11:05:18 +00:00
parse the -D flag as early as possible
In fact, this will make -D being parsed at least before the conkyrc is being read, allowing for debug-output from inside the config-parser. :)
This commit is contained in:
parent
6f587402d8
commit
db2282968f
@ -3974,9 +3974,6 @@ void initialisation(int argc, char **argv) {
|
||||
case 'd':
|
||||
fork_to_background = 1;
|
||||
break;
|
||||
case 'D':
|
||||
global_debug_level++;
|
||||
break;
|
||||
#ifdef X11
|
||||
case 'f':
|
||||
set_first_font(optarg);
|
||||
@ -4169,9 +4166,12 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
switch (c) {
|
||||
case 'D':
|
||||
global_debug_level++;
|
||||
break;
|
||||
case 'v':
|
||||
case 'V':
|
||||
print_version();
|
||||
print_version(); /* doesn't return */
|
||||
case 'c':
|
||||
if (current_config) {
|
||||
free(current_config);
|
||||
|
Loading…
Reference in New Issue
Block a user