Skip to content

Commit fc1f255

Browse files
committed
[MISC] Subcommands alternative syntax
1 parent d48c51f commit fc1f255

File tree

3 files changed

+186
-88
lines changed

3 files changed

+186
-88
lines changed

include/sharg/detail/format_parse.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,10 @@ class format_parse : public format_base
5757
~format_parse() = default; //!< Defaulted.
5858

5959
/*!\brief The constructor of the parse format.
60-
* \param[in] argc_ The number of command line arguments.
6160
* \param[in] argv_ The command line arguments to parse.
6261
*/
63-
format_parse(int const argc_, std::vector<std::string> argv_) : argv{std::move(argv_)}
64-
{
65-
(void)argc_;
66-
}
62+
format_parse(std::vector<std::string> argv_) : argv{std::move(argv_)}
63+
{}
6764
//!\}
6865

6966
/*!\brief Adds an sharg::detail::get_option call to be evaluated later on.

0 commit comments

Comments
 (0)