X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a0fef35d6bd0505df5d3337a4357d6c867177d35..c52b96359b639cda516615f9433d3b20b35443b5:/docs/latex/wx/cmdlpars.tex?ds=sidebyside diff --git a/docs/latex/wx/cmdlpars.tex b/docs/latex/wx/cmdlpars.tex index 46119ef6d1..8dd937c1a9 100644 --- a/docs/latex/wx/cmdlpars.tex +++ b/docs/latex/wx/cmdlpars.tex @@ -69,8 +69,8 @@ this structure: struct wxCmdLineEntryDesc { wxCmdLineEntryType kind; - const char *shortName; - const char *longName; + wxString shortName; + wxString longName; wxString description; wxCmdLineParamType type; int flags; @@ -93,7 +93,7 @@ enum wxCmdLineEntryType } The field {\tt shortName} is the usual, short, name of the switch or the option. -{\tt longName} is the corresponding long name or NULL if the option has no long +{\tt longName} is the corresponding long name or empty if the option has no long name. Both of these fields are unused for the parameters. Both the short and long option names can contain only letters, digits and the underscores. @@ -167,15 +167,15 @@ the only restriction is that it must be done before calling \helpref{Parse}{wxcmdlineparserparse}. To specify the command line to parse you may use either one of constructors -accepting it (\tt{wxCmdLineParser(argc, argv)} or \tt{wxCmdLineParser(const wxString&)} usually) +accepting it (\tt{wxCmdLineParser(argc, argv)} or \tt{wxCmdLineParser(const wxString&)} usually) or, if you use the default constructor, you can do it later by calling \helpref{SetCmdLine}{wxcmdlineparsersetcmdline}. The same holds for command line description: it can be specified either in -the constructor (\helpref{without\ command\ line}{wxcmdlineparserwxcmdlineparser} or -\helpref{together\ with\ it}{wxcmdlineparserwxcmdlineparserdescargc}) or -constructed later using either \helpref{SetDesc}{wxcmdlineparsersetdesc} or -combination of \helpref{AddSwitch}{wxcmdlineparseraddswitch}, +the \helpref{constructor}{wxcmdlineparserwxcmdlineparserctor} (with or without +the command line itself) or constructed later using either +\helpref{SetDesc}{wxcmdlineparsersetdesc} or combination of +\helpref{AddSwitch}{wxcmdlineparseraddswitch}, \helpref{AddOption}{wxcmdlineparseraddoption} and \helpref{AddParam}{wxcmdlineparseraddparam} methods.