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

@ -11,7 +11,12 @@ class ArgsParser {
const parsedArgs = parseArgs(argv, this.options);
this.validate(parsedArgs);
return parsedArgs;
const { _: [directory], ...rest } = parsedArgs;
return {
...rest,
directory
};
}
validate(parsedArgs) {