diff options
| author | Joe Robinson <joe@mumsnet.com> | 2014-09-19 18:15:43 +0100 | 
|---|---|---|
| committer | Joe Robinson <joe@mumsnet.com> | 2014-09-19 18:15:43 +0100 | 
| commit | 87fb9e9253b02d50c37d6f907117836b3d3c718a (patch) | |
| tree | 37f2b26f03ae90ad2f740ba1d57a576bf83f6da1 | |
| parent | 06364c1664e3d6a4027a096747ab84e4e6248811 (diff) | |
Fixed version output
| -rwxr-xr-x | bladictionary.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| 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: | 
