We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b00af8c commit 2c3ea5fCopy full SHA for 2c3ea5f
ls.py
@@ -10,7 +10,7 @@
10
parser = argparse.ArgumentParser()
11
parser.add_argument("path", default=".", nargs="?")
12
parser.add_argument("-a", "--all", action="store_true")
13
-parser.add_argument("-l", "--list", action="store_true")
+parser.add_argument("-l", "--long", action="store_true")
14
args = parser.parse_args()
15
16
def ls():
@@ -21,7 +21,7 @@ def ls():
21
listdir = [f for f in os.listdir(path) if not f.startswith(".")]
22
listdir.sort()
23
output = ""
24
- if args.list:
+ if args.long:
25
output = longlist(path, listdir)
26
else:
27
output = defOutput(listdir)
0 commit comments