From 2cbda0d603be2202223b7e38022059d4df28a3dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 12 Oct 2018 17:03:55 +0200 Subject: [PATCH] Name the list-courses command explicitly with dash to avoid surprises See https://github.com/pyvec/naucse.python.cz/pull/469#issuecomment-429317691 --- .travis.yml | 2 +- naucse/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 876417e816..27ff36c2ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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:" diff --git a/naucse/cli.py b/naucse/cli.py index f2db58f822..e828cd887c 100644 --- a/naucse/cli.py +++ b/naucse/cli.py @@ -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):