eric6/ThirdParty/Pygments/pygments/cmdline.py

changeset 7983
54c5cfbb1e29
parent 7701
25f42e208e08
equal deleted inserted replaced
7982:48d210e41c65 7983:54c5cfbb1e29
3 pygments.cmdline 3 pygments.cmdline
4 ~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~
5 5
6 Command line interface. 6 Command line interface.
7 7
8 :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details. 9 :license: BSD, see LICENSE for details.
10 """ 10 """
11 11
12 import os 12 import os
13 import sys 13 import sys
230 if opts.pop('-h', None) is not None: 230 if opts.pop('-h', None) is not None:
231 print(usage) 231 print(usage)
232 return 0 232 return 0
233 233
234 if opts.pop('-V', None) is not None: 234 if opts.pop('-V', None) is not None:
235 print('Pygments version %s, (c) 2006-2020 by Georg Brandl.' % __version__) 235 print('Pygments version %s, (c) 2006-2021 by Georg Brandl.' % __version__)
236 return 0 236 return 0
237 237
238 # handle ``pygmentize -L`` 238 # handle ``pygmentize -L``
239 L_opt = opts.pop('-L', None) 239 L_opt = opts.pop('-L', None)
240 if L_opt is not None: 240 if L_opt is not None:

eric ide

mercurial