@@ -42,11 +42,15 @@ class argument_group {
4242public:
4343 argument_group () = delete ;
4444
45- argument_group& description (std::string_view desc) noexcept {
46- this ->_description = desc;
47- return *this ;
48- }
49-
45+ /* *
46+ * @brief Set the `hidden` attribute of the group.
47+ *
48+ * - If set to true, the group will be hidden from the help output.
49+ * - Groups are NOT hidden by default.
50+ *
51+ * @param h The value to set for the attribute (default: true).
52+ * @return Reference to the group instance.
53+ */
5054 argument_group& hidden (const bool h = true ) noexcept {
5155 this ->_hidden = h;
5256 return *this ;
@@ -99,7 +103,7 @@ class argument_group {
99103
100104 // / Construct a new argument group with the given name.
101105 argument_group (argument_parser& parser, const std::string_view name)
102- : _parser(&parser), _name(name), _description(std:: nullopt ) {}
106+ : _parser(&parser), _name(name) {}
103107
104108 // / Add a new argument to this group (called internally by parser).
105109 void _add_argument (arg_ptr_t arg) noexcept {
@@ -108,7 +112,6 @@ class argument_group {
108112
109113 argument_parser* _parser; // /< Pointer to the owning parser.
110114 std::string _name; // /< Name of the group (used in help output).
111- std::optional<std::string> _description; // /< Description of the group (used in help output).
112115 arg_ptr_vec_t _arguments; // /< A list of arguments that belong to this group.
113116
114117 bool _hidden : 1 = false ; // /< The hidden attribute value (default: false).
0 commit comments