diff --git a/cmd/ingest.go b/cmd/ingest.go index 2e9c60b..23da206 100644 --- a/cmd/ingest.go +++ b/cmd/ingest.go @@ -25,6 +25,7 @@ func (c *ingestCmd) Command() *cobra.Command { utils.NetworkPassphraseOption(&cfg.NetworkPassphrase), utils.SentryDSNOption(&sentryDSN), utils.StellarEnvironmentOption(&stellarEnvironment), + utils.RPCClientURLOption(&cfg.RPCURL), { Name: "captive-core-bin-path", Usage: "Path to Captive Core's binary file.", diff --git a/cmd/utils/global_options.go b/cmd/utils/global_options.go index 7b53a67..b9b081b 100644 --- a/cmd/utils/global_options.go +++ b/cmd/utils/global_options.go @@ -67,6 +67,16 @@ func HorizonClientURLOption(configKey *string) *config.ConfigOption { } } +func RPCClientURLOption(configKey *string) *config.ConfigOption { + return &config.ConfigOption{ + Name: "rpc-url", + Usage: "The URL of the Stellar RPC server which this application will communicate with.", + OptType: types.String, + ConfigKey: configKey, + Required: true, + } +} + func ChannelAccountEncryptionPassphraseOption(configKey *string) *config.ConfigOption { return &config.ConfigOption{ Name: "channel-account-encryption-passphrase",