Mercurial > irccd
diff irccdctl/main.cpp @ 584:2c3122f23a04
Misc: pet vera
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 04 Dec 2017 15:23:53 +0100 |
parents | 18e80ec38ac7 |
children | e531f04507aa |
line wrap: on
line diff
--- a/irccdctl/main.cpp Mon Dec 04 14:30:31 2017 +0100 +++ b/irccdctl/main.cpp Mon Dec 04 15:23:53 2017 +0100 @@ -243,7 +243,8 @@ * argument is a command name. */ if (option.size() == 1 && option[0].empty()) - throw std::runtime_error(string_util::sprintf("alias %s: missing command name in '%s'", name, option.key())); + throw std::runtime_error(string_util::sprintf("alias %s: missing command name in '%s'", + name, option.key())); std::string command = option[0]; std::vector<alias_arg> args(option.begin() + 1, option.end()); @@ -416,7 +417,8 @@ for (const auto& arg : cmd.args()) { if (arg.is_placeholder()) { if (args.size() < arg.index() + 1) - throw std::invalid_argument(string_util::sprintf("missing argument for placeholder %d", arg.index())); + throw std::invalid_argument( + string_util::sprintf("missing argument for placeholder %d", arg.index())); cmd_args.push_back(args[arg.index()]);