Be more explicit about paramater parsing error
This commit is contained in:
parent
6c8c346311
commit
386f41e1c5
|
@ -641,7 +641,7 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
catch (Kakoune::parameter_error& error)
|
catch (Kakoune::parameter_error& error)
|
||||||
{
|
{
|
||||||
write_stderr(format("Error: {}\n"
|
write_stderr(format("Error while parsing parameters: {}\n"
|
||||||
"Valid switches:\n"
|
"Valid switches:\n"
|
||||||
"{}", error.what(),
|
"{}", error.what(),
|
||||||
generate_switches_doc(param_desc.switches)));
|
generate_switches_doc(param_desc.switches)));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user