Skip to content

Commit 83783b3

Browse files
committed
Changed if start with no args,it shows usage.
1 parent 2e036ca commit 83783b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

expand.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ def output_file(filename):
5555
print(usage)
5656
sys.exit(2)
5757

58+
if len(opts) == 0 and len(args) == 0:
59+
print(usage)
60+
sys.exit(0)
61+
5862
for o, v in opts:
5963
if o == '--help' or o == '-h':
6064
print(usage)

0 commit comments

Comments
 (0)