Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Backport PR #173: Fix bug: broken (dev) CLI command for adding a Gene…
…ricAssetType

Rename CLI option: hover_label becomes description.

* Create draft PR for #172

* Rename CLI option

* Changelog entry

Co-authored-by: Flix6x <Flix6x@users.noreply.github.com>
Co-authored-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
3 people committed Sep 6, 2021
1 parent 45e5c84 commit c23d2e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions documentation/changelog.rst
Expand Up @@ -10,6 +10,7 @@ New features

Bugfixes
-----------
* Fix (dev) CLI command for adding a GenericAssetType [see `PR #173 <http://www.github.com/SeitaBV/flexmeasures/pull/173>`_]

Infrastructure / Support
----------------------
Expand Down
5 changes: 2 additions & 3 deletions flexmeasures/data/scripts/cli_tasks/data_add.py
Expand Up @@ -175,10 +175,9 @@ def add_sensor(**args):
@with_appcontext
@click.option("--name", required=True)
@click.option(
"--hover-label",
"--description",
type=str,
help="Label visible when hovering over the name in the UI.\n"
"Useful to explain acronyms, for example.",
help="Description (useful to explain acronyms, for example).",
)
def add_generic_asset_type(**args):
"""Add a generic asset type."""
Expand Down

0 comments on commit c23d2e2

Please sign in to comment.