refactored HammerCli.java