mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 18:55:47 +01:00
Improve :mkvimperatorrc error messages.
This commit is contained in:
@@ -279,7 +279,12 @@ function IO() //{{{
|
|||||||
"Write current key mappings and changed options to the config file",
|
"Write current key mappings and changed options to the config file",
|
||||||
function (args)
|
function (args)
|
||||||
{
|
{
|
||||||
// TODO: "E172: Only one file name allowed"
|
if (args.length > 1)
|
||||||
|
{
|
||||||
|
liberator.echoerr("E172: Only one file name allowed");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let filename = args[0] || io.getRCFile(null, true).path;
|
let filename = args[0] || io.getRCFile(null, true).path;
|
||||||
let file = io.getFile(filename);
|
let file = io.getFile(filename);
|
||||||
|
|
||||||
@@ -317,7 +322,7 @@ function IO() //{{{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
argCount: "?",
|
argCount: "*", // FIXME: should be "?" but kludged for proper error message
|
||||||
bang: true,
|
bang: true,
|
||||||
completer: function (context) completion.file(context, true)
|
completer: function (context) completion.file(context, true)
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user