[V3] added --version flag (#1479)

This commit is contained in:
retke
2018-04-03 03:17:19 +02:00
committed by palmtree5
parent d65f8856f4
commit 10012c1e16
2 changed files with 6 additions and 1 deletions

View File

@@ -64,6 +64,8 @@ def ask_sentry(red: Red):
def parse_cli_flags(args):
parser = argparse.ArgumentParser(description="Red - Discord Bot",
usage="redbot <instance_name> [arguments]")
parser.add_argument("--version", "-V", action="store_true",
help="Show Red's current version")
parser.add_argument("--list-instances", action="store_true",
help="List all instance names setup "
"with 'redbot-setup'")