diff --git a/wotbreplay_uploader.py b/wotbreplay_uploader.py index cda7dcf..f790d8e 100644 --- a/wotbreplay_uploader.py +++ b/wotbreplay_uploader.py @@ -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: