I think this should be:

var forced = (options.f || options.force);

using indexOf on the full command would match "--funloving"