[mythtv] [PATCH] MythDVD - mtd Usage Statement
Michael T. Dean
mtdean at thirdcontact.com
Fri Jul 23 02:22:28 EDT 2004
While writing up some documentation for testing/running mtd, I noticed
that the usage statement claims that "--daemon" is the default
(daemon_mode = true), when the code instead sets "--nodaemon"
(daemon_mode = false) as the default. I also confirmed this when
running it without any command-line options.
The attached patch changes the usage statement to say that "--nodaemon"
is the default. If, instead, daemon mode should be the default, we
should change line 30 of mythdvd/mtd/main.cpp to reflect that.
Thanks,
Mike
-------------- next part --------------
--- mythdvd/mtd/main.cpp.orig 2004-01-23 01:02:25.000000000 -0500
+++ mythdvd/mtd/main.cpp 2004-07-23 01:43:27.000000000 -0400
@@ -72,8 +72,8 @@
cerr << "Invalid argument: " << a.argv()[argpos] << endl <<
"Valid options are: " << endl <<
"-p or --port number A port number to listen on (default is 2442) " << endl <<
- "-d or --daemon Runs mtd as a daemon (default) " << endl <<
- "-n or --nodaemon Does not run mtd as a daemon " << endl;
+ "-d or --daemon Runs mtd as a daemon " << endl <<
+ "-n or --nodaemon Does not run mtd as a daemon (default) " << endl;
return -1;
}
}
More information about the mythtv-dev
mailing list