We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64cfdd2 commit 21c46a6Copy full SHA for 21c46a6
1 file changed
implement-shell-tools/ls/ls.py
@@ -0,0 +1,9 @@
1
+import argparse
2
+
3
+parser = argparse.ArgumentParser(prog="ls", description="List directory contents. Ignore files and directories starting with a '.' by default")
4
+parser.add_argument("-1", help="List one file per line.", action="store_true")
5
+parser.add_argument("-a", help="Do not ignore hidden files (files with names that start with '.').", action="store_true")
6
+parser.add_argument("path", help="The directory path (optional).", default=".", nargs="?")
7
8
+args = parser.parse_args()
9
0 commit comments