Skip to content

Commit

Permalink
fix(cli): Change option names to be aligned with behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
devangcx committed Jan 24, 2021
1 parent d7b2898 commit 6af75a6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions honeybee_vtk/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ def main():
show_default=True
)
@click.option(
'--exclude-grids', '-eg', is_flag=True, default=True,
'--include-grids', '-eg', is_flag=True, default=False,
help='Exclude exporting grids.', show_default=True
)
@click.option(
'--exclude-vectors', '-ev', is_flag=True, default=True,
'--include-vectors', '-ev', is_flag=True, default=False,
help='Exclude exporting vector arrows.', show_default=True
)
@click.option(
'--exclude-points', '-ep', is_flag=True, default=True,
'--include-points', '-ep', is_flag=True, default=False,
help='Exclude exporting grid points.', show_default=True
)
@click.option(
'--show-html', '--show', '-sh', is_flag=True, default=False,
help='Open the generated HTML file in a browser', show_default=True
)
def translate_recipe(
hbjson_file, name, folder, file_type, exclude_grids, exclude_vectors,
exclude_points, show_html
hbjson_file, name, folder, file_type, include_grids, include_vectors,
include_points, show_html
):
"""Translate a HBJSON file to several VTK, XML, or HTML file.
Expand All @@ -63,9 +63,6 @@ def translate_recipe(

folder = pathlib.Path(folder)
folder.mkdir(exist_ok=True)
include_grids = not exclude_grids
include_vectors = not exclude_vectors
include_points = not exclude_points

try:
output_file = writer(
Expand Down

0 comments on commit 6af75a6

Please sign in to comment.