diff options
Diffstat (limited to 'library/cpp/getopt/small/modchooser.h')
-rw-r--r-- | library/cpp/getopt/small/modchooser.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/getopt/small/modchooser.h b/library/cpp/getopt/small/modchooser.h index 0a8de6d50b..db323f47ef 100644 --- a/library/cpp/getopt/small/modchooser.h +++ b/library/cpp/getopt/small/modchooser.h @@ -30,9 +30,9 @@ public: virtual ~TMainClass() = default; }; -//! Function to handle '--version' parameter -typedef void (*TVersionHandlerPtr)(); - +//! Function to handle '--version' parameter +typedef void (*TVersionHandlerPtr)(); + /*! Main class for handling different modes in single tool. * * You can add modes for this class, use autogenerated help with @@ -43,7 +43,7 @@ typedef void (*TVersionHandlerPtr)(); */ class TModChooser { public: - TModChooser(); + TModChooser(); ~TModChooser(); public: @@ -67,10 +67,10 @@ public: //! Set modes help option name (-? is by default) void SetModesHelpOption(const TString& helpOption); - - //! Specify handler for '--version' parameter - void SetVersionHandler(TVersionHandlerPtr handler); - + + //! Specify handler for '--version' parameter + void SetVersionHandler(TVersionHandlerPtr handler); + //! Set description show mode void SetSeparatedMode(bool separated = true); @@ -89,9 +89,9 @@ public: * In this method following things happen: * 1) If first argument is -h/--help/-? then print short description of * all modes and exit with zero code. - * 2) If first argument is -v/--version and version handler is specified, + * 2) If first argument is -v/--version and version handler is specified, * then call it and exit with zero code. - * 3) Find mode with the same name as first argument. If it's found then + * 3) Find mode with the same name as first argument. If it's found then * call it and return its return code. * 4) If appropriate mode is not found - return non-zero code. */ @@ -138,19 +138,19 @@ private: //! Main program description. TString Description; - //! Help option for modes. + //! Help option for modes. TString ModesHelpOption; - + //! Wrappers around all modes. TVector<THolder<TMainClass>> Wrappers; //! Modes TMap<TString, TMode*> Modes; - + TString DefaultMode; - //! Handler for '--version' parameter - TVersionHandlerPtr VersionHandler; + //! Handler for '--version' parameter + TVersionHandlerPtr VersionHandler; //! When set to true, show descriptions unsorted and display separators bool ShowSeparated; |