chore: import upstream snapshot with attribution
Lint / lint (push) Has been cancelled
Build Docs / Deploy Docs (push) Has been cancelled
Windows CI / Windows (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:23:58 +08:00
commit 770d92cb1f
694 changed files with 114634 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
"""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)