Skip to content

Commit c817b30

Browse files
gllghrbrad-lewis
authored andcommitted
Fixes for estat usage and arg parsing error messages (delphix#26)
* Fix usage message for zil program * Fix arg parsing error message
1 parent c27002d commit c817b30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/estat.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ class Args:
202202
else:
203203
assert False, "unhandled option: " + opt
204204

205-
if len(rem_args) != 1:
205+
if len(rem_args) == 0:
206+
die("Missing duration argument")
207+
208+
if len(rem_args) > 1:
206209
die("Too many arguments")
207210

208211
try:

0 commit comments

Comments
 (0)