Allow flags to be passed to hammer commands

Add a way to pass flags to hammer commands.

The implementation was defined as if an argument is `True` or `False` then it is a flag and will be added to the command output only if the value is `True`.

Also was added a test for `_construct_command` function.

Related to #703