Command-line options need to be parsed twice

Bug #1182000 reported by David Planella
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Qreator
Triaged
Low
Unassigned

Bug Description

On qreator/__init__.py, main() function we parse the options after having loaded the plugins. We do this so that plugin-specific options can be added.

However, that poses a problem for options that need to be read before plugins are loaded, such as -v (verbose). This means that logging will not be set up for any code before we load the plugins.

We should read the options twice:

- Once at the start of main() to get the generic options
- Once after plugins have been loaded to append the plugin-specific options

David Planella (dpm)
Changed in qreator:
milestone: none → 13.05.4
status: New → Triaged
importance: Undecided → Low
David Planella (dpm)
Changed in qreator:
milestone: 13.10.1 → next
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.