summaryrefslogtreecommitdiff
path: root/bladictionary.py
diff options
context:
space:
mode:
Diffstat (limited to 'bladictionary.py')
-rwxr-xr-xbladictionary.py6
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: