aboutsummaryrefslogtreecommitdiff
path: root/crates/divina/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/divina/src/cli.rs')
-rw-r--r--crates/divina/src/cli.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/divina/src/cli.rs b/crates/divina/src/cli.rs
index 6034b38..6a843b7 100644
--- a/crates/divina/src/cli.rs
+++ b/crates/divina/src/cli.rs
@@ -18,7 +18,6 @@ fn cli() -> App<'static, 'static> {
.possible_values(&["bin", "lib"]),
Arg::with_name("git").long("git").takes_value(true),
Arg::with_name("path")
- .required(true)
.index(1)
.takes_value(true),
]),
@@ -48,7 +47,7 @@ pub fn execute(divina: &mut crate::Divina) {
let repository = s_matches
.value_of("git")
.unwrap_or("https://github.com/divinaland/init.git");
- let path = s_matches.value_of("path").unwrap_or_else(|| unreachable!());
+ let path = s_matches.value_of("path").unwrap_or(".");
divina_git::clone(repository, &format!("./{}", path))
.expect("!! could to clone init repository, perhaps the repository is invalid ?");