From ff094a1d3e58f7df0b3de5ed5e0cf22c07cca46e Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Tue, 5 Jul 2022 16:36:54 +0200 Subject: [PATCH] fix: unused import, protected keyword use --- geoclustering/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geoclustering/__main__.py b/geoclustering/__main__.py index a4c7367..6b2a4d0 100644 --- a/geoclustering/__main__.py +++ b/geoclustering/__main__.py @@ -1,6 +1,5 @@ from pathlib import Path import click -import os import webbrowser import geoclustering.clustering as clustering @@ -44,12 +43,13 @@ import geoclustering.io as io ) @click.option( "--open", + "_open", is_flag=True, help="Open the generated visualization in the default browser automatically.", ) @click.option("--debug", is_flag=True, help="Print debug output.") @click.argument("filename", type=click.Path(exists=True)) -def main(distance, size, output, filename, algorithm, open, debug): +def main(distance, size, output, filename, algorithm, _open, debug): def print_debug(s): if debug: click.secho(s, fg="bright_black") @@ -79,7 +79,7 @@ def main(distance, size, output, filename, algorithm, open, debug): click.echo(f"Output files saved to {Path(output).absolute()}") - if open: + if _open: if vis: webbrowser.open_new_tab("file://" + str(vis.absolute())) print_debug(f"Opened visualization in default browser.")