Skip to content

Commit

Permalink
Show default value in --help (ex : 'train' for --transport)
Browse files Browse the repository at this point in the history
  • Loading branch information
tducret committed Sep 5, 2018
1 parent 90cd8c2 commit 8e38f12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trainline_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@
help='period of search from now \
(example : 1day, 2days, 3d, 1hour, 2hours, 3h)',
default='3hours',
show_default=True,
)
@click.option(
'--transport', '-t',
type=click.Choice(['train', 'coach', 'any']),
help='get only results for the selected transportation mean',
default='train',
show_default=True,
)
@click.option(
'--verbose', '-v',
Expand Down

0 comments on commit 8e38f12

Please sign in to comment.