[mythtv-commits] mythtv commit: r17309 - in trunk/mythtv by danielk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Mon May 12 19:18:43 UTC 2008


      Author: danielk
        Date: 2008-05-12 19:18:43 +0000 (Mon, 12 May 2008)
New Revision: 17309
   Changeset: http://cvs.mythtv.org/trac/changeset/17309

Added:

   trunk/mythtv/libs/libmyth/mythcommandlineparser.cpp
   trunk/mythtv/libs/libmyth/mythcommandlineparser.h

Modified:

   trunk/mythtv/libs/libmyth/libmyth.pro
   trunk/mythtv/programs/mythcommflag/main.cpp
   trunk/mythtv/programs/mythfrontend/main.cpp

Log:

Refs #5346. Adds a --override-settings-file option.

This also adds a MythCommandLineParser class which is an attempt to start moving common command line parsing code into a single class. I found some bugs in the commflagger command line parsing code last week which had been fixed in the other command line parsers. So far, only the override settings options have been consolidated there, and only mythfrontend and mythcommflag are using the consolidated version.

The override settings file is just a file containing linefeed delimited KEY=VALUE pairs. This makes it easier to test a few different settings without needing to poke the DB or compose a series of command line argument novellas.




More information about the mythtv-commits mailing list