argparser provides functions for parsing command-line arguments.
To use the parser,
create an arg.parser object with arg_parser;
add arguments to the parser with add_argument;
call parse_args to parse the command line arguments.
To execute the script, invoke Rscript.
Alternatively on Linux, insert a shebang on the first line
(#!/usr/bin/env Rscript) and chmod +x the script,
Useful links: