Added directory as rest of arguments.
This commit is contained in:
parent
3b8c037a27
commit
cfdfdd0418
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user