Skip to content

Commit

Permalink
Fix cli optional args (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n authored Jun 5, 2024
1 parent 6262db3 commit 19afe5a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions crates/core/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,12 +542,26 @@ const fn default_gateway_port() -> u16 {

#[derive(clap::Parser, Default, Debug, Clone, Serialize, Deserialize)]
pub struct ConfigPathsArgs {
/// The configuration directory.
#[arg(long, default_value = None, env = "CONFIG_DIR")]
config_dir: Option<PathBuf>,
/// The contracts directory.
#[arg(long, default_value = None, env = "CONTRACTS_DIR")]
contracts_dir: Option<PathBuf>,
/// The delegates directory.
#[arg(long, default_value = None, env = "DELEGATES_DIR")]
delegates_dir: Option<PathBuf>,
/// The secrets directory.
#[arg(long, default_value = None, env = "SECRECTS_DIR")]
secrets_dir: Option<PathBuf>,
/// The database directory.
#[arg(long, default_value = None, env = "DB_DIR")]
db_dir: Option<PathBuf>,
/// The event log file.
#[arg(long, default_value = None, env = "EVENT_LOG")]
event_log: Option<PathBuf>,
/// The data directory.
#[arg(long, default_value = None, env = "DATA_DIR")]
data_dir: Option<PathBuf>,
}

Expand Down

0 comments on commit 19afe5a

Please sign in to comment.