Skip to content

Commit

Permalink
fix: add required to network_option for init and purge
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu committed Aug 18, 2022
1 parent 9aa7663 commit e756692
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ape_cache/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def cli():


@cli.command(short_help="Initialize a new cache database")
@network_option()
@network_option(required=True)
def init(network):
"""
Initializes an SQLite database and creates a file to store data
Expand Down Expand Up @@ -61,7 +61,7 @@ def query(query_str, network):


@cli.command(short_help="Purges entire database")
@network_option()
@network_option(required=True)
def purge(network):
"""
Purges data from the selected database instance.
Expand Down

0 comments on commit e756692

Please sign in to comment.