Skip to content

Commit

Permalink
Make Rails arguments optional
Browse files Browse the repository at this point in the history
Calling rails-new without any arguments fails with error: (error: the following required arguments were not provided: <ARGS>..). Making rails arguments optional allows to simply run rails-new and see what params are required for scaffolding new rails application (for example app name).
  • Loading branch information
Rukomoynikov committed Oct 6, 2024
1 parent 785ede8 commit b0bbc32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rails_new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(version, about, long_about = None, subcommand_negates_reqs = true)]
pub struct Cli {
#[clap(trailing_var_arg = true, required = true)]
#[clap(trailing_var_arg = true)]
/// arguments passed to `rails new`
pub args: Vec<String>,
#[clap(long, short = 'u', default_value = "3.3.4")]
Expand Down

0 comments on commit b0bbc32

Please sign in to comment.