Skip to content

Commit

Permalink
Name the list-courses command explicitly with dash to avoid surprises
Browse files Browse the repository at this point in the history
  • Loading branch information
hroncok committed Oct 12, 2018
1 parent 62ab7c3 commit 2cbda0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ before_script: # encrypted variables aren't accessible in PRs
script:
- pipenv graph
- pipenv run test
- pipenv run naucse list_courses # don't remove, there might be timeouts otherwise, see naucse/cli.py for details
- pipenv run naucse list-courses # don't remove, there might be timeouts otherwise, see naucse/cli.py for details
- pipenv run naucse freeze --verbose
after_script:
- echo "Suplementary logs:"
Expand Down
2 changes: 1 addition & 1 deletion naucse/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def cli(app, *, base_url=None, freezer=None):
def naucse():
pass

@naucse.command()
@naucse.command(name='list-courses')
@click.option("--forks-only", default=False, is_flag=True,
help="Only list courses and runs from forks")
def list_courses(forks_only):
Expand Down

0 comments on commit 2cbda0d

Please sign in to comment.