Skip to content

Commit bc84111

Browse files
fix(ls): make -1 option required instead of default
1 parent b476ec7 commit bc84111

File tree

1 file changed

+2
-1
lines changed
  • implement-shell-tools/ls/sample-files

1 file changed

+2
-1
lines changed

implement-shell-tools/ls/sample-files/myLs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ function listDirectory(dir, options) {
4040
program
4141
.name("myls")
4242
.description("Custom implementation of ls")
43-
.option("-1", "list one file per line (default in our version)")
43+
.option("-1", "list one file per line (required)")
44+
4445
.option("-a, --all", "include hidden files")
4546
.argument("[dir]", "directory to list", ".")
4647
.action((dir, options) => {

0 commit comments

Comments
 (0)