diff options
Diffstat (limited to 'R/calibrate_tranches_BC.R')
| -rw-r--r-- | R/calibrate_tranches_BC.R | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/R/calibrate_tranches_BC.R b/R/calibrate_tranches_BC.R index b61c39af..ed24eea9 100644 --- a/R/calibrate_tranches_BC.R +++ b/R/calibrate_tranches_BC.R @@ -24,7 +24,7 @@ updateflag <- FALSE tenor <- "5yr"
if(args[1]=="-u"){
updateflag <- TRUE
- if(length(args) >=2 || args[2]=="-c"){
+ if(length(args) >=2 && args[2]=="-c"){
if(length(args) < 3){
stop("Please provide a config file")
}else{
|
