ava-labs / ava-labs/platform-cli

node info uses --ip instead of --rpc-url, inconsistent with other commands

Open
#24 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1
Forks
5
PR merge metrics
No merged PRs in 30d

Description

## Problem

Every command uses `--rpc-url` for specifying a custom endpoint, but `node info` uses `--ip`:

```
platform node info --ip 127.0.0.1 # works
platform node info --rpc-url http://127.0.0.1:9650 # ignored, still requires --ip
```

This is confusing because `--rpc-url` is a global flag that works everywhere else (wallet, transfer, subnet, etc).

## Suggested Fix

- Accept `--rpc-url` as the primary way to specify the node (extract host from URL)
- Keep `--ip` as an alias for backward compatibility
- Default port to 9650 when only an IP is provided

## Environment
- platform-cli v1.0.1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.