Skip to content

Commit b0bbc32

Browse files
committed
Make Rails arguments optional
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).
1 parent 785ede8 commit b0bbc32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rails_new.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use clap::{Parser, Subcommand};
33
#[derive(Parser)]
44
#[command(version, about, long_about = None, subcommand_negates_reqs = true)]
55
pub struct Cli {
6-
#[clap(trailing_var_arg = true, required = true)]
6+
#[clap(trailing_var_arg = true)]
77
/// arguments passed to `rails new`
88
pub args: Vec<String>,
99
#[clap(long, short = 'u', default_value = "3.3.4")]

0 commit comments

Comments
 (0)