commit b2b89b3e1ec123f050e1417fe46a79966b0410bd
parent 33882eefee2a51ba780e85f94dddf597afe23142
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date: Sat, 21 Sep 2024 15:28:19 +0000
Recipient list is overwritten by default in init command, like pass
Diffstat:
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/spec/usage_spec.sh b/spec/usage_spec.sh
@@ -902,7 +902,7 @@ Describe 'Command-Line Parsing'
%text
#|$ do_init recipient-1 recipient-2
#|DECISION=default
- #|OVERWRITE=no
+ #|OVERWRITE=yes
}
When call cmd_init recipient-1 recipient-2
The output should be blank
@@ -914,7 +914,7 @@ Describe 'Command-Line Parsing'
%text
#|$ do_init sub recipient
#|DECISION=default
- #|OVERWRITE=no
+ #|OVERWRITE=yes
}
When call cmd_init --path=sub recipient
The output should be blank
@@ -926,7 +926,7 @@ Describe 'Command-Line Parsing'
%text
#|$ do_init sub recipient
#|DECISION=default
- #|OVERWRITE=no
+ #|OVERWRITE=yes
}
When call cmd_init --path sub recipient
The output should be blank
@@ -938,7 +938,7 @@ Describe 'Command-Line Parsing'
%text
#|$ do_init sub recipient
#|DECISION=default
- #|OVERWRITE=no
+ #|OVERWRITE=yes
}
When call cmd_init -psub recipient
The output should be blank
@@ -950,7 +950,7 @@ Describe 'Command-Line Parsing'
%text
#|$ do_init sub recipient
#|DECISION=default
- #|OVERWRITE=no
+ #|OVERWRITE=yes
}
When call cmd_init -p sub recipient
The output should be blank
@@ -973,7 +973,7 @@ Describe 'Command-Line Parsing'
%text
#|$ do_init -recipient
#|DECISION=default
- #|OVERWRITE=no
+ #|OVERWRITE=yes
}
When call cmd_init -- -recipient
The output should be blank
diff --git a/src/pashage.sh b/src/pashage.sh
@@ -1269,6 +1269,7 @@ cmd_help() {
}
cmd_init() {
+ OVERWRITE=yes
PARSE_ERROR=no
SUBDIR=''