From 87fb9e9253b02d50c37d6f907117836b3d3c718a Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Fri, 19 Sep 2014 18:15:43 +0100 Subject: Fixed version output --- bladictionary.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bladictionary.py') diff --git a/bladictionary.py b/bladictionary.py index 69eeb4a..ba0383d 100755 --- a/bladictionary.py +++ b/bladictionary.py @@ -7,7 +7,7 @@ import optparse from lxml import etree import sqlite3 -VERSION = "2.1.6b" +VERSION = "2.1.7b" class Definition(object): #ID is relative to the word type, eg noun 1, noun 2, verb 1, verb 2, not to the entire list @@ -159,7 +159,6 @@ def parse_args(): word_dict = "" stop_id = 0 - #See if the dictionary or type have been specified if len(args) > 1: cur_id = 1 @@ -186,7 +185,7 @@ def parse_args(): cur_id += 1 word = word.strip() - else: + elif not options.version: print "You must specify a word to define" sys.exit(1) @@ -301,6 +300,7 @@ def get_sql(word): return items def main(): + word, word_type, word_dict, options = parse_args() if options.version: -- cgit v1.2.3