From f4ed9d5d83fc1a468d67032589fb1b00399eaa22 Mon Sep 17 00:00:00 2001 From: Fabian Dellwing Date: Thu, 27 Apr 2023 12:55:55 +0200 Subject: LibCore: Add support for short integral type to ArgsParser --- Userland/Libraries/LibCore/ArgsParser.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Libraries') diff --git a/Userland/Libraries/LibCore/ArgsParser.cpp b/Userland/Libraries/LibCore/ArgsParser.cpp index f1eed2dc85..da6d9ead75 100644 --- a/Userland/Libraries/LibCore/ArgsParser.cpp +++ b/Userland/Libraries/LibCore/ArgsParser.cpp @@ -473,9 +473,11 @@ void ArgsParser::add_option(I& value, char const* help_string, char const* long_ template void ArgsParser::add_option(int&, char const*, char const*, char, char const*, OptionHideMode); template void ArgsParser::add_option(long&, char const*, char const*, char, char const*, OptionHideMode); template void ArgsParser::add_option(long long&, char const*, char const*, char, char const*, OptionHideMode); +template void ArgsParser::add_option(short&, char const*, char const*, char, char const*, OptionHideMode); template void ArgsParser::add_option(unsigned&, char const*, char const*, char, char const*, OptionHideMode); template void ArgsParser::add_option(unsigned long&, char const*, char const*, char, char const*, OptionHideMode); template void ArgsParser::add_option(unsigned long long&, char const*, char const*, char, char const*, OptionHideMode); +template void ArgsParser::add_option(unsigned short&, char const*, char const*, char, char const*, OptionHideMode); void ArgsParser::add_option(double& value, char const* help_string, char const* long_name, char short_name, char const* value_name, OptionHideMode hide_mode) { -- cgit v1.2.3