withArgs package:main-tester

withArgs args act - while executing action act, have getArgs return args.