aha, neat. Should at least use "--force" instead of "-force"


On Wed, Sep 4, 2013 at 11:45 AM, Braden Shepherdson <
notifications@github.com> wrote:

> In src/uninstall.js:
>
> >      var graph = dependency_info.graph;
> >      var dependents = graph.getChain(plugin_id);
> >
> > +    var forced = options.cmd && (options.cmd.indexOf('-f') + options.cmd.indexOf('-force') > -2);
>
> This is fine. CLI's opts.options, which was passed into here as options,
> is an array of strings. So this is array indexOf, not string indexOf, and
> it won't confuse -f with -funloving. Order on the command line doesn't
> matter here.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/apache/cordova-plugman/pull/22/files#r6157431>
> .
>