Skip to content

Commit 2c3ea5f

Browse files
committedFeb 24, 2015
fix missunderstand name
1 parent b00af8c commit 2c3ea5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎ls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
parser = argparse.ArgumentParser()
1111
parser.add_argument("path", default=".", nargs="?")
1212
parser.add_argument("-a", "--all", action="store_true")
13-
parser.add_argument("-l", "--list", action="store_true")
13+
parser.add_argument("-l", "--long", action="store_true")
1414
args = parser.parse_args()
1515

1616
def ls():
@@ -21,7 +21,7 @@ def ls():
2121
listdir = [f for f in os.listdir(path) if not f.startswith(".")]
2222
listdir.sort()
2323
output = ""
24-
if args.list:
24+
if args.long:
2525
output = longlist(path, listdir)
2626
else:
2727
output = defOutput(listdir)

0 commit comments

Comments
 (0)
Please sign in to comment.