Ticket #4069: ticket4069.patch

File ticket4069.patch, 2.1 KB (added by Marek Kurdej <marek.kurdej@…>, 13 years ago)

Unified diff of the suggested changes

  • options_description.hpp

     
    6565            The 'name' parameter is interpreted by the following rules:
    6666            - if there's no "," character in 'name', it specifies long name
    6767            - otherwise, the part before "," specifies long name and the part
    68             after -- long name.
     68            after -- short name.
    6969        */
    7070        option_description(const char* name,
    7171                           const value_semantic* s);
     
    8181        enum match_result { no_match, full_match, approximate_match };
    8282
    8383        /** Given 'option', specified in the input source,
    84             return 'true' is 'option' specifies *this.
     84            returns 'true' if 'option' specifies *this.
    8585        */
    8686        match_result match(const std::string& option, bool approx,
    8787                           bool long_ignore_case, bool short_ignore_case) const;
    8888
    89         /** Return the key that should identify the option, in
     89        /** Returns the key that should identify the option, in
    9090            particular in the variables_map class.
    9191            The 'option' parameter is the option spelling from the
    9292            input source.
     
    107107        /// Returns the option name, formatted suitably for usage message.
    108108        std::string format_name() const;
    109109
    110         /** Return the parameter name and properties, formatted suitably for
     110        /** Returns the parameter name and properties, formatted suitably for
    111111            usage message. */
    112112        std::string format_parameter() const;
    113113
     
    211211        friend BOOST_PROGRAM_OPTIONS_DECL std::ostream& operator<<(std::ostream& os,
    212212                                             const options_description& desc);
    213213
    214         /** Output 'desc' to the specified stream, calling 'f' to output each
     214        /** Outputs 'desc' to the specified stream, calling 'f' to output each
    215215            option_description element. */
    216216        void print(std::ostream& os) const;
    217217