소스 검색

Added roxbot's own version of arg parse

tags/v2.0.0
Roxie Gibson 5 년 전
부모
커밋
f49b6e94e0
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. +9
    -0
      roxbot/utils.py

+ 9
- 0
roxbot/utils.py 파일 보기

@@ -27,6 +27,15 @@ SOFTWARE.

import asyncio
import discord
import argparse


class ArgParser(argparse.ArgumentParser):
"""Create Roxbot's own version of ArgumentParser that doesn't exit the program on error."""
def error(self, message):
# By passing here, it will just continue in cases where a user inputs an arg that can't be parsed.
pass


class Menu:


Loading…
취소
저장