diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-07-20 16:06:51 +0000 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-07-20 16:06:51 +0000 |
commit | 4fb0ce9c0662a7b7c3bce712577743e2a56444c0 (patch) | |
tree | 8143d3de6e9d966fa33269ea0c9d3f112468c82f /setup.cpp | |
parent | b40d2c550444c61c25a1c2ec2dbd472dd11d2b62 (diff) | |
download | vdr-plugin-live-4fb0ce9c0662a7b7c3bce712577743e2a56444c0.tar.gz vdr-plugin-live-4fb0ce9c0662a7b7c3bce712577743e2a56444c0.tar.bz2 |
- Added support for EPG images: Specify the directory with your
EPG images via the new commandline option '-e <dir>' or
'--epgimages=<dir> like -P'live -e /video/epgimages'
Diffstat (limited to 'setup.cpp')
-rw-r--r-- | setup.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -44,15 +44,17 @@ bool Setup::ParseCommandLine( int argc, char* argv[] ) { "port", required_argument, NULL, 'p' }, { "ip", required_argument, NULL, 'i' }, { "log", required_argument, NULL, 'l' }, + { "epgimages", required_argument, NULL, 'e' }, { 0 } }; int optchar, optind = 0; - while ( ( optchar = getopt_long( argc, argv, "p:i:l:", opts, &optind ) ) != -1 ) { + while ( ( optchar = getopt_long( argc, argv, "p:i:l:e:", opts, &optind ) ) != -1 ) { switch ( optchar ) { case 'p': m_serverPort = atoi( optarg ); break; case 'i': m_serverIps.push_back( optarg ); break; case 'l': m_tntnetloglevel = optarg; break; + case 'e': m_epgimagedir = optarg; break; default: return false; } } @@ -65,12 +67,13 @@ char const* Setup::CommandLineHelp() const { if ( m_helpString.empty() ) { ostringstream builder; - builder << " -p PORT, --port=PORT use PORT to listen for incoming connections\n" - " (default: " << m_serverPort << ")\n" - << " -i IP, --ip=IP bind server only to specified IP, may appear\n" - " multiple times\n" - " (default: 0.0.0.0)\n" - << " -l level, --log=level log level for tntnet (values: INFO, DEBUG,...)\n"; + builder << " -p PORT, --port=PORT use PORT to listen for incoming connections\n" + " (default: " << m_serverPort << ")\n" + << " -i IP, --ip=IP bind server only to specified IP, may appear\n" + " multiple times\n" + " (default: 0.0.0.0)\n" + << " -l level, --log=level log level for tntnet (values: INFO, DEBUG,...)\n" + << " -e <dir>, --epgimages=<dir> directory for epgimages\n"; m_helpString = builder.str(); } return m_helpString.c_str(); |