Skip to content

Commit

Permalink
group required for client args
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkuo committed Jan 7, 2025
1 parent dc90055 commit b0c9a7c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/sui-indexer-alt-framework/src/ingestion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,20 @@ mod rpc_client;
mod test_utils;

#[derive(clap::Args, Clone, Debug)]
#[group(required = true)]
pub struct ClientArgs {
/// Remote Store to fetch checkpoints from.
#[clap(long, required = true, group = "source")]
#[clap(long, group = "source")]
pub remote_store_url: Option<Url>,

/// Path to the local ingestion directory.
/// If both remote_store_url and local_ingestion_path are provided, remote_store_url will be used.
#[clap(long, required = true, group = "source")]
#[clap(long, group = "source")]
pub local_ingestion_path: Option<PathBuf>,

/// Path to the local ingestion directory.
/// If all remote_store_url, local_ingestion_path and rpc_api_url are provided, remote_store_url will be used.
#[clap(long, required = true, group = "source")]
#[clap(long, group = "source")]
pub rpc_api_url: Option<Url>,

#[clap(long)]
Expand Down

0 comments on commit b0c9a7c

Please sign in to comment.