Closed richelbilderbeek closed 3 years ago
Indeed this has been fixed, thanks!
Note to self of a test that now passes:
remotes::install_github("richelbilderbeek/gcaer")
gcaer::install_gcae()
args <- c("--nonsense")
expect_error(run_gcae(args), "Invalid command")
When I run GCAE from the command line with a nonsense argument, e.g.
nonsense
:I get to see the
help
file:I think it is already friendly to show the help, yet I would not expect the output to be exactly the same as when doing
python run_gcae.py --help
. I suggest to add an error message (and error code) if an invalid CLI argument is given.