Skip to content
Snippets Groups Projects
Commit f2c5375e authored by Maria Voigt's avatar Maria Voigt
Browse files

fixing parameter definition for verbose option

because verbose is action=store_false, it means that if I use the flag
than verbose is not true, the flag is thus renamed to quiet
parent 31c6d67f
No related branches found
No related tags found
No related merge requests found
......@@ -35,9 +35,14 @@ option_list <- list (
default=FALSE, help="include aerial transects"),
make_option("--stability", action="store_true", default=FALSE,
help="do stability analysis"),
make_option(c("-v", "--verbose"), dest = "verbose_script", action = "store_true",
default = TRUE, help = "print all intermediate results")
make_option(c("-q", "--quiet"), dest = "verbose_script",
action = "store_false",
default = TRUE,
help = "print all intermediate results")
)
# verbose option a bit counterintuitive
# because I make action store_false, when I say -q that
# means that verbose == F, which is quiet
options <- parse_args(OptionParser(option_list=option_list))
......
......@@ -47,9 +47,15 @@ option_list <- list (
type = "integer",
help = "year of the survey years (1994:2015) to predict abundance to",
metavar = "2015"),
make_option(c("-v", "--verbose"), dest = "verbose_script", action = "store_true",
default = TRUE, help = "print all intermediate results")
make_option(c("-q", "--quiet"), dest = "verbose_script",
action = "store_false",
default = TRUE,
help = "print all intermediate results")
)
# verbose option a bit counterintuitive
# because I make action store_false, when I say -q that
# means that verbose == F, which is quiet
options <- parse_args(OptionParser(option_list=option_list))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment