Added --silent option

This commit is contained in:
Jylpah committed 2018-10-17 11:02:39 +08:00
1 parent 6b4b18d368
commit 729fabb0c8
1 file changed
+5 -2
+5 -2
View File
@@ -34,13 +34,16 @@ async def main(argv):
parser.add_argument('--tankopedia', type=str, default='tanks.json', help='JSON file to read Tankopedia from. Default: "tanks.json"')
parser.add_argument('--mapfile', type=str, default='maps.json', help='JSON file to read Blitz map names from. Default: "maps.json"')
parser.add_argument('-d', '--debug', action='store_true', default=False, help='Debug mode')
parser.add_argument('-v', '--verbose', action='store_true', default=False, help='Verbose mode')
parser.add_argument('-v', '--verbose', action='store_true', default=True, help='Verbose mode')
parser.add_argument('-s', '--silent', action='store_true', default=False, help='Silent mode')
parser.add_argument('files', metavar='FILE1 [FILE2 ...]', type=str, nargs='+', help='Files to read. Use \'-\' for STDIN"')
args = parser.parse_args()
bu.setVerbose(args.verbose)
bu.setDebug(args.debug)
if args.silent:
bu.setVerbose(False)
wg = WG(WG_appID, args.tankopedia, args.mapfile)
if args.account != None: