@@ -34,87 +34,87 @@ import std;
3434
3535export namespace essence ::cli {
3636 /* *
37- * @brief A parser to handle the command line arguments.
37+ * A parser to handle the command line arguments.
3838 */
3939 class arg_parser {
4040 public:
4141 using parse_result_type = abi::map<abi::string, option_result, std::less<>>;
4242
4343 /* *
44- * @brief Creates an instance.
44+ * Creates an instance.
4545 */
4646 ES_API (CPPESSENCE) arg_parser();
4747 ES_API (CPPESSENCE) arg_parser(arg_parser&&) noexcept ;
4848 ES_API (CPPESSENCE) ~arg_parser ();
4949 ES_API (CPPESSENCE) arg_parser& operator =(arg_parser&&) noexcept ;
5050
5151 /* *
52- * @brief Checks whether the previous parsing operation succeeds.
52+ * Checks whether the previous parsing operation succeeds.
5353 * @return True if succeeds; otherwise false.
5454 */
5555 ES_API (CPPESSENCE) explicit operator bool () const noexcept ;
5656
5757 /* *
58- * @brief Gets the added options.
58+ * Gets the added options.
5959 * @return The added options.
6060 */
6161 [[nodiscard]] ES_API(CPPESSENCE) std::span<const abstract::option> options () const noexcept ;
6262
6363 /* *
64- * @brief Gets the cached result after parsing.
64+ * Gets the cached result after parsing.
6565 * @return The cached result as a map, or an empty map if not exists.
6666 */
6767 [[nodiscard]] ES_API(CPPESSENCE) const parse_result_type& cached_result () const noexcept ;
6868
6969 /* *
70- * @brief Gets the unmatched arguments after parsing.
70+ * Gets the unmatched arguments after parsing.
7171 * @return The unmatched arguments.
7272 */
7373 [[nodiscard]] ES_API(CPPESSENCE) std::span<const abi::string> unmatched_args () const noexcept ;
7474
7575 /* *
76- * @brief Adds a new option.
76+ * Adds a new option.
7777 * @param option The CLI option.
7878 */
7979 ES_API (CPPESSENCE) void add_option (abstract::option option) const ; // NOLINT(*-use-nodiscard)
8080
8181 /* *
82- * @brief Parses the startup command line arguments.
82+ * Parses the startup command line arguments.
8383 */
8484 ES_API (CPPESSENCE) void parse () const ;
8585
8686 /* *
87- * @brief Parses the input command line arguments.
87+ * Parses the input command line arguments.
8888 * @param argc The count of the arguments.
8989 * @param argv The array of the arguments.
9090 */
9191 ES_API (CPPESSENCE) void parse (std::int32_t argc, char * argv[]) const ;
9292
9393 /* *
94- * @brief Parses the input command line arguments.
94+ * Parses the input command line arguments.
9595 * @param args The arguments.
9696 */
9797 ES_API (CPPESSENCE) void parse (std::span<const abi::string> args) const ;
9898
9999 /* *
100- * @brief Prints the help string.
100+ * Prints the help string.
101101 */
102102 ES_API (CPPESSENCE) void show_help () const ;
103103
104104 /* *
105- * @brief Subscribes an event to be invoked when an error occurs.
105+ * Subscribes an event to be invoked when an error occurs.
106106 * @param handler The handler.
107107 */
108108 ES_API (CPPESSENCE) void on_error (const output_handler& handler) const ;
109109
110110 /* *
111- * @brief Subscribes an event to be invoked when a normal output is ready.
111+ * Subscribes an event to be invoked when a normal output is ready.
112112 * @param handler The handler.
113113 */
114114 ES_API (CPPESSENCE) void on_output (const output_handler& handler) const ;
115115
116116 /* *
117- * @brief Fill a data model with the parsed result.
117+ * Fill a data model with the parsed result.
118118 * @tparam T The type of the model.
119119 * @return The filled model.
120120 */
0 commit comments