def setup_abort_cmd(parser):
    """
    Sets up an 'abort' command for a strategy command parser.

    ex: sw-manager patch-strategy abort <some args>

    :param parser: the strategy parser to add the create command to.
    """
    abort_cmd = parser.add_parser('abort',
                                  help='Abort a strategy')
    abort_cmd.set_defaults(cmd='abort')
    abort_cmd.add_argument('--stage-id',
                           help='stage identifier to abort')
    return abort_cmd