Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename webapi command --version to --apiver to avoid conflict #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion steamctl/commands/webapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def parameter_autocomplete(prefix, parsed_args, **kwargs):
help='Output format')
scp_call.add_argument('--method', choices=['GET', 'POST'], type=str,
help='HTTP method to use')
scp_call.add_argument('--version', type=int,
scp_call.add_argument('--apiver', type=int,
help='Method version')
scp_call.add_argument('endpoint', type=str,
help='WebAPI endpoint name (eg ISteamWebAPIUtil.GetSupportedAPIList)')\
Expand Down
4 changes: 2 additions & 2 deletions steamctl/commands/webapi/cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def cmd_webapi_call(args):
return 1 # error

apicall = webapi.get
version = args.version or 1
version = args.apiver or 1

if args.method == 'POST':
apicall = webapi.post
Expand All @@ -115,7 +115,7 @@ def cmd_webapi_call(args):
if args.method is None:
if webapi_map[args.endpoint][0] == 'POST':
apicall = webapi.post
if args.version is None:
if args.apiver is None:
version = webapi_map[args.endpoint][1]

# drop reserved words. these have special meaning for steam.webapi
Expand Down