moved main argument parsing for modules to garfield-common