add force arg long switch to CLI (#1362)

This commit is contained in:
Christopher Poenaru 2021-02-18 16:53:40 +00:00 committed by GitHub
parent d734b1723c
commit d4db249997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,7 @@ pub fn build_cli() -> App<'static, 'static> {
.help("Name of the project. Will create a new directory with that name in the current directory"), .help("Name of the project. Will create a new directory with that name in the current directory"),
Arg::with_name("force") Arg::with_name("force")
.short("f") .short("f")
.long("force")
.takes_value(false) .takes_value(false)
.help("Force creation of project even if directory is non-empty") .help("Force creation of project even if directory is non-empty")
]), ]),