Added --output-filename to be consistent with naming conventions

--output-pathinfo maps to output.pathinfo, however, output.filename is set
by --output-file instead of --output-filename.
Added the new argument while keeping the old one for compability.
This commit is contained in:
Guillermo Bonvehi 2015-06-29 23:03:46 -03:00
parent df4e2e4e3d
commit 380b0665c1
1 changed files with 6 additions and 0 deletions

View File

@ -260,6 +260,12 @@ module.exports = function(optimist, argv, convertOptions) {
});
ifArg("output-file", function(value) {
console.warn("output.file will be deprecated: Use 'output.filename' instead");
ensureObject(options, "output");
options.output.filename = value;
});
ifArg("output-filename", function(value) {
ensureObject(options, "output");
options.output.filename = value;
});