summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-08-20 14:50:50 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-08-20 14:50:50 +0200
commit62fcdbdb80197f48e14efeca75f836cdd9395620 (patch)
tree916113abbe9c413470b46932921b2b65e073d6ca
parent3eee64829dd68a3ed6c872071dead1df1eb8a14c (diff)
downloadcpaste-62fcdbdb80197f48e14efeca75f836cdd9395620.tar.gz
cpaste-62fcdbdb80197f48e14efeca75f836cdd9395620.tar.xz
cpaste-62fcdbdb80197f48e14efeca75f836cdd9395620.zip
Fix specifying lang.
-rwxr-xr-xcpaste2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpaste b/cpaste
index 435ed93..23161c3 100755
--- a/cpaste
+++ b/cpaste
@@ -101,7 +101,7 @@ if not paste_data:
if options.lang:
options.lang = options.lang.lower()
- if not guess_lang and valid_langs not in valid_langs:
+ if not guess_lang and options.lang not in valid_langs:
print "Specified language '%s' is not a valid option." % options.lang
print "Valid language options are:"
print tabulate(valid_langs, indent=3)