Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
made changes in click.argument
  • Loading branch information
tirtha-v authored Apr 25, 2024
1 parent d93cfc5 commit 5e0126e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mat_search/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
@click.command(
help="Material search with API key, property, range, and number of elements"
)
@click.argument("api_key", typ=str)
@click.argument("property", typ=str)
@click.argument("min", typ=float)
@click.argument("max", typ=float)
@click.argument("api_key", type=str)
@click.argument("property", type=str)
@click.argument("min", type=float)
@click.argument("max", type=float)
@click.argument("num", type=int)
def main(api_key, property, min, max, num):
print("\n".join(get_mat(api_key, property, float(min), float(max), int(num))))
Expand Down

0 comments on commit 5e0126e

Please sign in to comment.