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

unify sawtooth CLI argument behavior #2453

Open
mtbc opened this issue Jul 10, 2023 · 1 comment
Open

unify sawtooth CLI argument behavior #2453

mtbc opened this issue Jul 10, 2023 · 1 comment

Comments

@mtbc
Copy link

mtbc commented Jul 10, 2023

Subcommands vary unexpectedly. E.g.,

  • for picking up a url set in $SAWTOOTH_HOME/etc/cli.toml instead of --url
  • parsing option -F as short for --format

then

  • identity and settings don't do those
  • block, peer, and state do those.

It's probably worth reviewing the command-line arguments across sawtooth's subcommands to look for easy opportunities for unification. With luck, some of this is a bit of copy-and-paste that can be factored out to a common helper.

@mtbc
Copy link
Author

mtbc commented Jul 10, 2023

It's worth noting that other Sawtooth CLI like sawset is missing some of these, could be worth looking beyond just sawtooth in unifying.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant