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