diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-08-20 14:50:50 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-08-20 14:50:50 +0200 |
commit | 62fcdbdb80197f48e14efeca75f836cdd9395620 (patch) | |
tree | 916113abbe9c413470b46932921b2b65e073d6ca | |
parent | 3eee64829dd68a3ed6c872071dead1df1eb8a14c (diff) | |
download | cpaste-62fcdbdb80197f48e14efeca75f836cdd9395620.tar.gz cpaste-62fcdbdb80197f48e14efeca75f836cdd9395620.tar.xz cpaste-62fcdbdb80197f48e14efeca75f836cdd9395620.zip |
Fix specifying lang.
-rwxr-xr-x | cpaste | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |