Added directory as rest of arguments.

This commit is contained in:
moonstar-x 2021-06-12 02:05:05 -05:00
parent 3b8c037a27
commit cfdfdd0418

View File

@ -10,8 +10,13 @@ class ArgsParser {
parse(argv) {
const parsedArgs = parseArgs(argv, this.options);
this.validate(parsedArgs);
const { _: [directory], ...rest } = parsedArgs;
return parsedArgs;
return {
...rest,
directory
};
}
validate(parsedArgs) {