Skip to content

Commit 5e605da

Browse files
committed
EN [#5300] swap these too
1 parent 089c3c4 commit 5e605da

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

polyapi/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ def execute_from_cli():
4242

4343
###########################################################################
4444
# Setup command
45+
4546
setup_parser = subparsers.add_parser("setup", help="Setup your Poly connection")
46-
setup_parser.add_argument("api_key", nargs="?", help="API key for Poly API")
4747
setup_parser.add_argument("url", nargs="?", help="URL for the Poly API")
48+
setup_parser.add_argument("api_key", nargs="?", help="API key for Poly API")
49+
4850

4951
def setup(args):
50-
api_key = args.api_key or os.getenv("POLY_API_KEY")
5152
url = args.url or os.getenv("POLY_API_BASE_URL")
53+
api_key = args.api_key or os.getenv("POLY_API_KEY")
5254

5355
if api_key and url:
5456
set_api_key_and_url(url, api_key)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2", "wheel"]
33

44
[project]
55
name = "polyapi-python"
6-
version = "0.3.11.dev2"
6+
version = "0.3.11.dev3"
77
description = "The Python Client for PolyAPI, the IPaaS by Developers for Developers"
88
authors = [{ name = "Dan Fellin", email = "[email protected]" }]
99
dependencies = [

0 commit comments

Comments
 (0)