Skip to content

Commit

Permalink
fix game arguments not being restricted on some commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Granitosaurus committed Jun 30, 2017
1 parent 38ea431 commit bc64800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ggmt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def tick(game, template, is_json, no_color):


@cli.command('watch', help='Open a stream in browser or media player(via streamlink).')
@click.argument('game')
@click.argument('game', type=click.Choice(GosuTicker.games))
@click.option('-s', '--show-unavailable', 'show', is_flag=True,
help="list matches that don't have streams too")
@click.option('-t', '--template',
Expand Down Expand Up @@ -243,7 +243,7 @@ def notify(game, team, seconds, minutes, pushbullet, pushbullet_key, force):


@cli.command('tournament', help='display tournament brackets, default: current tournaments')
@click.argument('game')
@click.argument('game', type=click.Choice(GosuTicker.games))
@click.option('-p', '--past', help='show past tournaments', is_flag=True)
@click.option('-a', '--all', 'all_', help='show all tournaments', is_flag=True)
@click.option('-f', '--future', help='show future tournaments', is_flag=True)
Expand Down

0 comments on commit bc64800

Please sign in to comment.