adds basic command-line parsing to madrid