Skip to content

Commit 2fd5dac

Browse files
committed
fix: config fields should be #[clap(long)]
1 parent 3c0fd38 commit 2fd5dac

File tree

2 files changed

+9
-8
lines changed
  • environments/core/box/src/environment
  • migration/cli/migrate-node/docs/cli

2 files changed

+9
-8
lines changed

environments/core/box/src/environment/config.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ pub enum EnvironmentConfigError {
1919
#[clap(help_expected = true)]
2020
pub struct Config {
2121
/// The rest api url of the box environment.
22+
#[clap(long)]
2223
pub rest_api_url: String,
2324
/// The db dir of the box environment.
25+
#[clap(long)]
2426
pub db_dir: PathBuf,
2527
/// Whether to isolate the box environment by snapshotting the movement runner and where to store the snapshot.
28+
#[clap(long)]
2629
pub snapshot_dir: Option<PathBuf>,
2730
}
2831

migration/cli/migrate-node/docs/cli/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,14 @@ Options:
140140
**Selection (2/4):** `environment-box`
141141
The config for the [BoxEnvironment]
142142

143-
Usage: --environment-box.* <REST_API_URL> <DB_DIR> [SNAPSHOT_DIR]
144-
145-
Arguments:
146-
<REST_API_URL> The rest api url of the box environment
147-
<DB_DIR> The db dir of the box environment
148-
[SNAPSHOT_DIR] Whether to isolate the box environment by snapshotting the movement runner and where to store the
149-
snapshot
143+
Usage: --environment-box.* [OPTIONS] --rest-api-url <REST_API_URL> --db-dir <DB_DIR>
150144

151145
Options:
152-
-h, --help Print help (see more with '--help')
146+
--rest-api-url <REST_API_URL> The rest api url of the box environment
147+
--db-dir <DB_DIR> The db dir of the box environment
148+
--snapshot-dir <SNAPSHOT_DIR> Whether to isolate the box environment by snapshotting the movement runner and
149+
where to store the snapshot
150+
-h, --help Print help (see more with '--help')
153151

154152
**Selection (3/4):** `environment-provisioner`
155153
The config for the [ProvisionerEnvironment]

0 commit comments

Comments
 (0)