Skip to content

Commit 089c3c4

Browse files
committed
EN [#5300] have positional args for setup match TS
1 parent ebde948 commit 089c3c4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

polyapi/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def setup(args):
5151
url = args.url or os.getenv("POLY_API_BASE_URL")
5252

5353
if api_key and url:
54-
set_api_key_and_url(api_key, url)
54+
set_api_key_and_url(url, api_key)
5555
else:
5656
initialize_config(force=True)
5757
# setup command should have default cache values

polyapi/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_api_key_and_url() -> Tuple[str | None, str | None]:
7373
return key, url
7474

7575

76-
def set_api_key_and_url(key: str, url: str):
76+
def set_api_key_and_url(url: str, key: str):
7777
config = configparser.ConfigParser()
7878
config["polyapi"] = {}
7979
config.set("polyapi", "poly_api_key", key)
@@ -107,7 +107,7 @@ def initialize_config(force=False):
107107
print_yellow("\n".join(errors))
108108
sys.exit(1)
109109

110-
set_api_key_and_url(key, url)
110+
set_api_key_and_url(url, key)
111111
print_green("Poly setup complete.")
112112

113113
if not key or not url:

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.dev1"
6+
version = "0.3.11.dev2"
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)