Skip to content

Commit 46aabc1

Browse files
committed
fix reproducibility
1 parent 2186edf commit 46aabc1

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

HELP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Manages butane database migrations.
5252

5353
* `-p`, `--path <PATH>`
5454

55-
Default value: `/Users/jayvdb/rust/butane`
55+
Default value: `<detected project containing .butane directory>`
5656
* `-v`, `--verbose` — Increase logging verbosity
5757
* `-q`, `--quiet` — Decrease logging verbosity
5858

butane_cli/src/main.rs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
use std::path::PathBuf;
55

66
use butane_cli::{
7-
add_backend, base_dir, clean, clear_data, collapse_migrations, delete_table,
8-
describe_migration, detach_latest_migration, embed, get_migrations, handle_error, init,
9-
list_backends, list_migrations, make_migration, migrate, regenerate_migrations, remove_backend,
10-
unmigrate,
7+
add_backend, clean, clear_data, collapse_migrations, delete_table, describe_migration,
8+
detach_latest_migration, embed, get_migrations, handle_error, init, list_backends,
9+
list_migrations, make_migration, migrate, regenerate_migrations, remove_backend, unmigrate,
1110
};
1211
use clap::{ArgAction, Parser, Subcommand};
1312

@@ -17,7 +16,15 @@ use clap::{ArgAction, Parser, Subcommand};
1716
struct Cli {
1817
#[command(subcommand)]
1918
command: Commands,
20-
#[arg(short = 'p', long, default_value=base_dir().into_os_string())]
19+
#[cfg(not(feature = "clap-markdown"))]
20+
#[arg(short = 'p', long, default_value=butane_cli::base_dir().into_os_string())]
21+
path: PathBuf,
22+
#[cfg(feature = "clap-markdown")]
23+
#[arg(
24+
short = 'p',
25+
long,
26+
default_value = "<detected project containing .butane directory>"
27+
)]
2128
path: PathBuf,
2229
#[command(flatten)]
2330
verbose: clap_verbosity_flag::Verbosity,

0 commit comments

Comments
 (0)