Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Positional arguments should be replaced by named options #5

Open
TimDaub opened this issue Apr 24, 2023 · 0 comments
Open

Positional arguments should be replaced by named options #5

TimDaub opened this issue Apr 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@TimDaub
Copy link
Member

TimDaub commented Apr 24, 2023

  • Right now, we're using positional arguments: cargo run -- submit-ledger https://warpcast.com/timdaub/0x1f54f8 "Kiwistand is live", where the first argument is "submit-ledger" (which is OK), but then to a user it can be confusing that they first have to add the link, and second the title [link] [title]
  • Rather, I'm used to submit named arguments, e.g. cargo run -- submit-ledger --url=https://... --title="Kiwistand is live", this makes command construction less error prone and more readable
@chrsmaral chrsmaral added the enhancement New feature or request label May 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants