Skip to content

Commit 1122b36

Browse files
committed
fixing commands error assertions
1 parent 53ce600 commit 1122b36

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/bibleit/command/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def blb(ctx, *args):
187187

188188
def notes(ctx, *args):
189189
"""List all notes. @alias"""
190+
assert not args, "you should use only notes"
190191
return _format_lines(ctx.notes) if ctx.notes else None
191192

192193

src/bibleit/command/set.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def bible(ctx, *args):
3939
Examples:
4040
set bible kjv
4141
set bible acf, nvi"""
42+
assert args, "you should use bible <translation[, translation[, ...]]>"
4243
translations = [value for arg in args for value in arg.split(",") if value]
4344
ctx.bible = sorted(
4445
{_Bible(translation.lower()) for translation in translations},

0 commit comments

Comments
 (0)