#1971: Unify Options Handling
-----------------------+----------------------------------------------------
Reporter: jumentous | Owner:
Type: patch | Status: new
Priority: minor | Milestone: Future
Component: core | Version: git master
Keywords: options |
-----------------------+----------------------------------------------------
Currently each startup script handles its own options processing, and the
6 or so standard options code (-l -L -c -q -r) is c&p into each.
This results for example in differences between option handling such as
regarding config file loading in ui.py and main.py:start_ui not to mention
it is just bad form.
This patch subclasses OptionParser and handles the default options in a
central place. It is mostly just moving code around.
There are possibly better ways to handle this, maybe create a class of
StartupTarget of which StartUI, StartDaemon and _UI are subclasses of and
handle options there, but this way has the smallest affect on the existing
code.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/1971>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-dev?hl=en.