Skip to content

Commit

Permalink
new: new-template-dir option
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelohdez committed Feb 15, 2024
1 parent 0dcc375 commit 5b9bedf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ pub struct Atmpt {
#[arg(short = 'n', long, hide_env = true, env = ALWAYS_DELETE_KEY, help = "Delete project on exit")]
pub delete: bool,

#[arg(long, hide = true, env = TEMPLATE_DIR_KEY)] // override template dir
pub template_dir: Option<String>,
#[arg(long, hide_env = true, env = TEMPLATE_DIR_KEY, help = "Override template dir")]
pub new_template_dir: Option<String>,
}

#[derive(Debug, Parser)]
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main() -> anyhow::Result<()> {
let req = args.required;

let mut data_dir = Cow::Borrowed(dirs.data_dir());
if let Some(new_dir) = args.template_dir {
if let Some(new_dir) = args.new_template_dir {
data_dir = Cow::Owned(PathBuf::from(new_dir));
};

Expand Down

0 comments on commit 5b9bedf

Please sign in to comment.