construct kwargs for command-line inside get_command_kwargs() to prevent repeated code block