diff options
Diffstat (limited to 'R/calibrate_tranches_BC.R')
| -rw-r--r-- | R/calibrate_tranches_BC.R | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/R/calibrate_tranches_BC.R b/R/calibrate_tranches_BC.R index e18a48d7..e0174aac 100644 --- a/R/calibrate_tranches_BC.R +++ b/R/calibrate_tranches_BC.R @@ -10,7 +10,7 @@ option_list <- list( help="Update from the last run date [default %default]"),
make_option(c("-c", "--config"), metavar="config_file",
help="Runs the list of indices provided in CONFIG_FILE"),
- make_option("--index", help="Index name we want to run"),
+ make_option(c("-i", "--index"), help="Index name we want to run"),
make_option("--tenor", default="5yr", help="Tenor we want to run [default %default]"))
args <- parse_args(OptionParser(option_list=option_list))
@@ -52,6 +52,9 @@ for(i in seq_along(runs$name)){ ig19 = as.Date("2013-05-01"),
ig21 = as.Date("2013-09-26"))
}
+ if(begin.date == Sys.Date()){
+ next
+ }
alldates <- seq(begin.date, Sys.Date()-1, by="1 day")
if(index.name=="ig19"){
|
