Skip to content

Commit 8a87f4c

Browse files
committed
daemon: update command-line constants
1 parent 61920ae commit 8a87f4c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/bin/opts/mod.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ use clap::ValueHint;
2828
use crate::bpnode::Config;
2929

3030
pub const BP_NODE_CONFIG: &str = "{data_dir}/bp-node.toml";
31-
pub const BP_NETWORK_ENV: &str = "BP_NETWORK";
32-
pub const BP_NO_NETWORK_PREFIX_ENV: &str = "BP_NO_NETWORK_PREFIX";
31+
pub const BP_NETWORK_ENV: &str = "BP_NODE_NETWORK";
3332

34-
pub const BP_DATA_DIR_ENV: &str = "BP_DATA_DIR";
33+
pub const BP_DATA_DIR_ENV: &str = "BP_NODE_DATA_DIR";
3534
#[cfg(any(
3635
target_os = "linux",
3736
target_os = "freebsd",
@@ -44,9 +43,9 @@ pub const BP_DATA_DIR: &str = "~/Library/Application Support/BP Node";
4443
#[cfg(target_os = "windows")]
4544
pub const BP_DATA_DIR: &str = "~\\AppData\\Local\\BP Node";
4645
#[cfg(target_os = "ios")]
47-
pub const BP_DATA_DIR: &str = "~/Documents";
46+
pub const BP_DATA_DIR: &str = "~/Documents/BP Node";
4847
#[cfg(target_os = "android")]
49-
pub const BP_DATA_DIR: &str = ".";
48+
pub const BP_DATA_DIR: &str = "./BP Node";
5049

5150
// Uses XDG_DATA_HOME if set, otherwise falls back to RGB_DATA_DIR
5251
fn default_data_dir() -> PathBuf {
@@ -84,7 +83,7 @@ pub struct Opts {
8483
pub network: Network,
8584

8685
/// Do not add network name as a prefix to the data directory
87-
#[arg(long, global = true, env = BP_NO_NETWORK_PREFIX_ENV)]
86+
#[arg(long, global = true)]
8887
pub no_network_prefix: bool,
8988

9089
/// Address(es) to listen for client RPC connections

0 commit comments

Comments
 (0)