summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-08 01:13:53 +0200
committerGeorg Brandl <georg@python.org>2014-10-08 01:13:53 +0200
commit2dd7a2b6b1aa538dc9fea6ca581a4657ccd7baf7 (patch)
tree59acb109e5b061a5e5374c6a7bb77e3f11089647 /pygments
parentd9dcb23898e9bb97f4494b24f8723e85e8045bc4 (diff)
downloadpygments-2dd7a2b6b1aa538dc9fea6ca581a4657ccd7baf7.tar.gz
Fix calling "pygmentize" without any args.
Diffstat (limited to 'pygments')
-rw-r--r--pygments/cmdline.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/pygments/cmdline.py b/pygments/cmdline.py
index 43ea5c85..20a3ae04 100644
--- a/pygments/cmdline.py
+++ b/pygments/cmdline.py
@@ -235,10 +235,6 @@ def main(args=sys.argv):
F_opts.append(arg)
opts[opt] = arg
- if not opts and not args:
- print(usage)
- return 0
-
if opts.pop('-h', None) is not None:
print(usage)
return 0