Skip to content

Commit

Permalink
Set default config file to tae.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jo1gi committed Apr 2, 2023
1 parent 583bf7e commit f75de90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub struct Arguments {
/// Links to open
pub urls: Vec<String>,
/// Path to config file
#[structopt(short, long, default_value = "config.toml")]
#[structopt(short, long, default_value = "tae.toml")]
pub config: std::path::PathBuf,
/// Dry mode (Don't run command)
#[structopt(long)]
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct Rule {

/// Load config file on disk
pub fn load_config(config_file: &Path) -> Result<Config, crate::Error> {
let config_path = if config_file != &PathBuf::from("config.toml") && config_file.exists() {
let config_path = if config_file.exists() {
config_file.to_path_buf()
} else {
dirs::config_dir()
Expand Down

0 comments on commit f75de90

Please sign in to comment.