Print usage when called without options

This commit is contained in:
Benjamin Bohard 2022-03-08 16:17:58 +01:00
parent e769a88532
commit 68a3d73368
1 changed files with 4 additions and 1 deletions

View File

@ -438,7 +438,10 @@ def main():
parser_compile.set_defaults(func=tex_compile)
args = parser.parse_args()
args.func(args)
if hasattr(args, 'func'):
args.func(args)
else:
parser.print_usage()
class Outline: