diff options
author | Georg Brandl <georg@python.org> | 2014-10-08 01:13:53 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-08 01:13:53 +0200 |
commit | 2dd7a2b6b1aa538dc9fea6ca581a4657ccd7baf7 (patch) | |
tree | 59acb109e5b061a5e5374c6a7bb77e3f11089647 | |
parent | d9dcb23898e9bb97f4494b24f8723e85e8045bc4 (diff) | |
download | pygments-2dd7a2b6b1aa538dc9fea6ca581a4657ccd7baf7.tar.gz |
Fix calling "pygmentize" without any args.
-rw-r--r-- | pygments/cmdline.py | 4 |
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 |