Tracker for CLI improvements #14

Open
opened 2024-11-26 11:43:40 +00:00 by ryan · 2 comments
Owner
No description provided.
ryan added this to the Custody Framework project 2024-11-26 11:43:40 +00:00
Author
Owner

Currently, arguments are either positional and therefore required, or --long-args and therefore optional. However, while writing the SOL transfer, I noticed it gets rather bulky when using positional required arguments. For example:

icepick sol transfer <amount> <to-address> <recent-blockhash> <from-address> --from-account <account> --fee-payer <fee-payer-account> --fee-payer-address <fee-payer-address>

This should instead probably be represented as:

icepick sol transfer <amount> <to-address> --recent-blockhash <blockhash> --from-address <address> --from-account [account] --fee-payer [account] --fee-payer-address [account]

Amount, to-address, blockhash, and from-address are still reuqired, but only amount and to address (the two "actually" relevant values) are positional.

Currently, arguments are either positional and therefore required, or `--long-args` and therefore optional. However, while writing the SOL transfer, I noticed it gets rather bulky when using positional required arguments. For example: ```sh icepick sol transfer <amount> <to-address> <recent-blockhash> <from-address> --from-account <account> --fee-payer <fee-payer-account> --fee-payer-address <fee-payer-address> ``` This should instead probably be represented as: ```sh icepick sol transfer <amount> <to-address> --recent-blockhash <blockhash> --from-address <address> --from-account [account] --fee-payer [account] --fee-payer-address [account] ``` Amount, to-address, blockhash, and from-address are still reuqired, but only amount and to address (the two "actually" relevant values) are positional.
Author
Owner

Or, make everything --long-args.

Or, make everything `--long-args`.
ryan added this to the Icepick v0.1.0 milestone 2024-12-12 20:30:26 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: public/icepick#14
No description provided.