Changed adb start cmd line construction to be more flexible.

This is related to appium/appium issue #2969.  I made a small change to make cmd line construction more flexible to allow for launching arbitrary apps that have fewer args.
No, the strange thing is it doesn't complain.  It'd be helpful if it did.


On Mon, Aug 25, 2014 at 11:45 AM, Jonathan Lipps <notifications@github.com>
wrote:

> In lib/adb.js:
>
> > +  }
> > +
> > +  if (startAppOptions.category) {
> > +    cmd += " -c " + startAppOptions.category;
> > +  }
> > +
> > +  if (startAppOptions.flags) {
> > +    cmd += " -f " + startAppOptions.flags;
> > +  }
> > +
> > +  if (startAppOptions.pkg) {
> > +    cmd += " -n " + startAppOptions.pkg + "/" + startAppOptions.activity + startAppOptions.optionalIntentArguments;
> > +  }
> > +
> > +  return cmd;
> > +}
>
> lint is complaining because there needs to be a semicolon after the brace
> here (to end the assignment statement)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/appium/appium-adb/pull/40/files#r16662283>.
>