drime

French rhyme dictionary with web and CLI interface
git clone https://a3nm.net/git/drime/
Log | Files | Refs | README

commit 30056a11d28d514a7d0b34f057fe663b774cb30d
parent dff02edab89173f241cbc29f69a40ea18f5ce67e
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 26 Oct 2013 11:55:02 +0200

fix stupid CLI parsing mistake

Diffstat:
query.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/query.py b/query.py @@ -201,7 +201,8 @@ if __name__ == '__main__': print ("Usage: %s QUERY [NSYL [GENDER [CLASSICAL]]]" % sys.argv[0]) try: for p in [3, 4]: - sys.argv[p] = convert(sys.argv[p]) + if p < len(sys.argv): + sys.argv[p] = convert(sys.argv[p]) r, c = query(*sys.argv[1:]) except BadValues: print ("Bad values passed as arguments.")