Skip to content

Commit edaeaf7

Browse files
committed
rename args
1 parent 6c031e2 commit edaeaf7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

multiversx_sdk_cli/cli_faucet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def setup_parser(args: list[str], subparsers: Any) -> Any:
2828
sub = cli_shared.add_command_subparser(subparsers, "faucet", "request", "Request xEGLD.")
2929
cli_shared.add_wallet_args(args, sub)
3030
sub.add_argument("--chain", choices=["D", "T"], help="the chain identifier")
31-
sub.add_argument("--api", type=str, help="custom api url for the native auth client")
31+
sub.add_argument("--api-url", type=str, help="custom api url for the native auth client")
3232
sub.add_argument("--wallet-url", type=str, help="custom wallet url to call the faucet from")
3333
sub.set_defaults(func=faucet)
3434

@@ -75,12 +75,12 @@ def get_wallet_and_api_urls(args: Any) -> tuple[str, str]:
7575

7676
def get_custom_wallet_and_api_urls(args: Any) -> tuple[str, str]:
7777
wallet = args.wallet_url
78-
api = args.api
78+
api = args.api_url
7979

8080
if not wallet:
8181
raise ArgumentsNotProvidedError("--wallet-url not provided")
8282

8383
if not api:
84-
raise ArgumentsNotProvidedError("--api not provided")
84+
raise ArgumentsNotProvidedError("--api-url not provided")
8585

8686
return wallet, api

0 commit comments

Comments
 (0)