Skip to content

Commit f650385

Browse files
committed
cli: more general comments
1 parent 025df7f commit f650385

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cli.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ pub struct ConfigCliOptions {
222222
#[arg(long, value_hint = ValueHint::FilePath)]
223223
pub config_path: Option<PathBuf>,
224224
/// Creates a default config file
225-
/// Writes to $XDG_CONFIG_HOME/onefetch/config.toml but can be overridden with --config-path
225+
/// By default, creates onefetch/config.toml at your config direrctory
226+
/// but it can be overridden with --config-path
226227
#[arg(long)]
227228
pub generate_config: bool,
228229
}
@@ -323,7 +324,7 @@ impl Default for ConfigCliOptions {
323324
// Not sure about unwrap
324325
config_path: Some(
325326
dirs::config_dir()
326-
.expect("Could not find $HOME!")
327+
.expect("Config directory is not found!")
327328
.join("onefetch/config.toml"),
328329
),
329330
generate_config: false,

0 commit comments

Comments
 (0)