44use std:: path:: PathBuf ;
55
66use 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} ;
1211use clap:: { ArgAction , Parser , Subcommand } ;
1312
@@ -17,7 +16,15 @@ use clap::{ArgAction, Parser, Subcommand};
1716struct 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