You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ADR 010: Unified approach for CLI arguments for Hermes v1.0.0
## Changelog
* 15.06.2022: Proposed.
## Context
In this ADR we provide recommendations and intuitions to using flags for all the arguments of the Hermes commands.
The problem we are trying to solve is a unified approach to CLI arguments for Hermes v1.0.0.
## Decision
To avoid confusion, all the parameters should take long flags. The following general scenarios should be applied:
* Only long flags are used in order to avoid having nonintuitive flags or conflicting flags.
* Any parameter ending with `_id` should have the `_id` removed from the flag to shorten it. For example the flag for `chain_id` should only be `chain`.
* Flags which can be shorten and still be meaningful should be shorten. This is done for `connection`, `channel` and `sequence`, which become respectively `conn`, `chan` and `seq`.
* For the channel and connection creation CLIs, the objects at the two ends are suffixed by `-a` and `-b`.
* All the specifiers for `chain`, `connection`, `channel` and `port` flags are suffixed. These specifiers are `host`, `reference`, `a`, `b` and `counterparty`.
The following commands are implemented, with the binary name `hermes` omitted:
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADR for unified approach for CLI arguments for Hermes #2306
ADR for unified approach for CLI arguments for Hermes #2306
Changes from 11 commits
26f842a
f57e62f
0bce0fe
d01829d
ae3ad70
e40d53c
c94b382
f3145bb
f47a8c3
15b82c7
fc6bfc6
a2d44c4
bc97c04
742efd8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing