]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdline.cpp
no changes
[wxWidgets.git] / src / common / cmdline.cpp
index ec1d43bdb48a59faad5c42acee193a7d5360ef1d..524ee1f43a1875b6964bee92fa2636da42eb1d92 100644 (file)
@@ -808,9 +808,17 @@ int wxCmdLineParser::Parse(bool showUsage)
                 }
                 else
                 {
-                    optName.Printf(_("%s (or %s)"),
-                                   opt.shortName.c_str(),
-                                   opt.longName.c_str());
+                    if ( AreLongOptionsEnabled() )
+                    {
+                        optName.Printf( _("%s (or %s)"),
+                                        opt.shortName.c_str(),
+                                        opt.longName.c_str() );
+                    }
+                    else
+                    {
+                        optName.Printf( wxT("%s"),
+                                        opt.shortName.c_str() );
+                    }
                 }
 
                 errorMsg << wxString::Format(_("The value for the option '%s' must be specified."),