Skip to content

Commit

Permalink
change: invert delete option
Browse files Browse the repository at this point in the history
to keep in line with "keep this project" question being `n` for deleting

+ hide delete's environment variable
  • Loading branch information
marcelohdez committed Feb 15, 2024
1 parent 5697097 commit 0dcc375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ pub struct Atmpt {
#[command(flatten)]
pub required: RequiredArgs,

#[arg(short, long, env = EDITOR_KEY, help = "Use given editor for this run")]
#[arg(short, long, env = EDITOR_KEY, help = "Editor to use")]
pub editor: Option<String>,

#[arg(short = 'y', long, env = ALWAYS_DELETE_KEY, help = "Autodelete project on exit")]
#[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
Expand Down

0 comments on commit 0dcc375

Please sign in to comment.