Files
wehub-resource-sync 770d92cb1f
Lint / lint (push) Has been cancelled
Build Docs / Deploy Docs (push) Has been cancelled
Windows CI / Windows (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:23:58 +08:00

17 lines
443 B
Python

"""An enhanced argument parser for mlc-chat."""
import argparse
import sys
class ArgumentParser(argparse.ArgumentParser):
"""An enhanced argument parser for mlc-chat."""
def error(self, message):
"""Overrides the behavior when erroring out"""
print("-" * 25 + " Usage " + "-" * 25)
self.print_help()
print("-" * 25 + " Error " + "-" * 25)
print(message, file=sys.stderr)
sys.exit(2)