Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions cmd/loom/gateway/root_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ var gatewayCmdFlags gatewayFlags
func newRootCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "gateway <command>",
Short: "Transfer Gateway Administration",
Short: "Transfer gateway administration",
}
pflags := cmd.PersistentFlags()
pflags.StringVarP(&gatewayCmdFlags.ChainID, "chain", "c", "default", "DAppChain ID")
pflags.StringVarP(&gatewayCmdFlags.URI, "uri", "u", "http://localhost:46658", "DAppChain base URI")
pflags.StringVarP(&gatewayCmdFlags.PrivKeyPath, "key", "k", "", "DAppChain Private Key file path")
pflags.StringVarP(&gatewayCmdFlags.EthPrivKeyPath, "eth-key", "", "", "Ethereum Private Key file path")
pflags.StringVarP(&gatewayCmdFlags.HSMConfigPath, "hsm", "", "", "HSM file path")
pflags.StringVarP(&gatewayCmdFlags.ChainID, "chain", "c", "default", "Loom Protocol chain ID")
pflags.StringVarP(&gatewayCmdFlags.URI, "uri", "u", "http://localhost:46658", "Loom Protocol base URI")
pflags.StringVarP(&gatewayCmdFlags.PrivKeyPath, "key", "k", "", "Path to the Loom Protocol private key")
pflags.StringVarP(&gatewayCmdFlags.EthPrivKeyPath, "eth-key", "", "", "Path to the Ethereum private key")
pflags.StringVarP(&gatewayCmdFlags.HSMConfigPath, "hsm", "", "", "Path to the HSM configuration file")
pflags.StringVarP(&gatewayCmdFlags.Algo, "algo", "", "ed25519", "Signing algorithm")
return cmd
}
Expand Down