Skip to content

Commit c58db9c

Browse files
committed
remove the validation for if we have multiple arguments as this clashes when handle wc for a directory with mutiple files
1 parent 46c5df5 commit c58db9c

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • implement-shell-tools/wc

implement-shell-tools/wc/wc.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ program.parse();
1313

1414
const argv = program.args;
1515

16-
if (argv.length != 1) {
17-
console.error(
18-
`Expected exactly 1 argument (a path) to be passed but got ${argv.length}.`
19-
);
20-
process.exit(1);
21-
}
16+
2217

2318
const path = argv[0];
2419

0 commit comments

Comments
 (0)