$ python3.9 -m latex_render -h
usage: latex_render [-h] [--version] -i INPUT_FILE_PATH [-o OUTPUT_FILE_PATH] [-type TYPE]
Run Latex_render
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-i INPUT_FILE_PATH, --i INPUT_FILE_PATH
input file path
-o OUTPUT_FILE_PATH, --o OUTPUT_FILE_PATH
output file path, if None use the input file path
-type TYPE, --type TYPE
type, 1: use codecogs.com 2: use render.githubusercontent.com (default = 1)
$ python3.10 -m latex_render -h
Traceback (most recent call last):
File "/usr/lib64/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib64/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/USER/.local/lib/python3.10/site-packages/latex_render/__main__.py", line 30, in <module>
class ArgumentParser(argparse.ArgumentParser):
File "/home/USER/.local/lib/python3.10/site-packages/latex_render/__main__.py", line 47, in ArgumentParser
def add_argument(self, *args, **kwargs):
File "/home/USER/.local/lib/python3.10/site-packages/overrides/overrides.py", line 59, in overrides
for super_class in _get_base_classes(sys._getframe(2), method.__globals__):
File "/home/USER/.local/lib/python3.10/site-packages/overrides/overrides.py", line 76, in _get_base_classes
class_name_components in _get_base_class_names(frame)]
File "/home/USER/.local/lib/python3.10/site-packages/overrides/overrides.py", line 139, in _get_base_class_names
extends.append(('name', co.co_names[oparg]))
IndexError: tuple index out of range