浏览代码

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:


正在加载...
取消
保存