mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
ArgsParser: Remove prefix from constructor
It makes sense to keep this consistent between applications, and the purpose of the string is not immediately obvious from an API perspective. If we need to make it configurable later, that can come from a setter.
This commit is contained in:
parent
729507f2bd
commit
c478503581
3 changed files with 4 additions and 4 deletions
|
@ -28,8 +28,8 @@ ArgsParser::Arg::Arg(const String& name, const String& value_name, const String&
|
|||
: name(name), description(description), value_name(value_name), required(required)
|
||||
{}
|
||||
|
||||
ArgsParser::ArgsParser(const String& program_name, const String& prefix)
|
||||
: m_program_name(program_name), m_prefix(prefix)
|
||||
ArgsParser::ArgsParser(const String& program_name)
|
||||
: m_program_name(program_name), m_prefix("-")
|
||||
{}
|
||||
|
||||
ArgsParserResult ArgsParser::parse(const int argc, const char** argv)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue