move wrong_argument_count to commands.cc, where it is used

This commit is contained in:
Maxime Coste 2012-11-21 13:44:43 +01:00
parent d1fade5c9e
commit 6bbbd2543a
2 changed files with 5 additions and 4 deletions

View File

@ -16,10 +16,6 @@ namespace Kakoune
struct Context;
struct wrong_argument_count : runtime_error
{
wrong_argument_count() : runtime_error("wrong argument count") {}
};
using CommandParameters = memoryview<String>;

View File

@ -33,6 +33,11 @@ extern bool quit_requested;
namespace
{
struct wrong_argument_count : runtime_error
{
wrong_argument_count() : runtime_error("wrong argument count") {}
};
struct unknown_option : public runtime_error
{
unknown_option(const String& name)