Skip to content

Commit

Permalink
fix for the list command
Browse files Browse the repository at this point in the history
  • Loading branch information
travishathaway committed Jul 28, 2023
1 parent 289bbbf commit 6dc200d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_protect/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ def guard(environment):
"--protected", "-p", help="Only show protected environments", is_flag=True
)
@click.option("--named", "-n", help="Only show named environments", is_flag=True)
def glist(guarded, named):
def glist(protected, named):
"""
List environments in conda and show whether they are protected
"""
all_environments = get_environment_info()

if guarded:
if protected:
all_environments = [env for env in all_environments if env.guarded]

if named:
Expand Down

0 comments on commit 6dc200d

Please sign in to comment.