Don't show docview sample --mdi option in help if it's not supported

No real changes, just avoid describing the "--mdi" option in the help
message if it's not really supported in this library build.
This commit is contained in:
Vadim Zeitlin
2018-05-12 19:34:54 +02:00
parent f53923dd31
commit ff023ef6b3

View File

@@ -92,7 +92,9 @@ MyApp::MyApp()
namespace CmdLineOption
{
#if wxUSE_MDI_ARCHITECTURE
const char * const MDI = "mdi";
#endif // wxUSE_MDI_ARCHITECTURE
const char * const SDI = "sdi";
const char * const SINGLE = "single";
@@ -102,8 +104,10 @@ void MyApp::OnInitCmdLine(wxCmdLineParser& parser)
{
wxApp::OnInitCmdLine(parser);
#if wxUSE_MDI_ARCHITECTURE
parser.AddSwitch("", CmdLineOption::MDI,
"run in MDI mode: multiple documents, single window");
#endif // wxUSE_MDI_ARCHITECTURE
parser.AddSwitch("", CmdLineOption::SDI,
"run in SDI mode: multiple documents, multiple windows");
parser.AddSwitch("", CmdLineOption::SINGLE,