From 2da5abb54aac9fdb7a75fe126efa1d59e7120f48 Mon Sep 17 00:00:00 2001 From: Bob Nadler Date: Tue, 15 Oct 2013 16:38:48 -0400 Subject: [PATCH] feat(cli): enhance Sauce Labs command line support Add command line options for Sauce Labs: * name * platform * platform-version * build * tags --- lib/cli.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/cli.js b/lib/cli.js index 0de0ca558..f6b6fd078 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -208,6 +208,21 @@ while(args.length) { case '--browser': commandLineConfig.capabilities.browserName = args.shift(); break; + case '--name': + commandLineConfig.capabilities.name = args.shift(); + break; + case '--platform': + commandLineConfig.capabilities.platform = args.shift(); + break; + case '--platform-version': + commandLineConfig.capabilities.version = args.shift(); + break; + case '--build': + commandLineConfig.capabilities.build = args.shift(); + break; + case '--tags': + commandLineConfig.capabilities.tags = args.shift().split(','); + break; case '--seleniumAddress': commandLineConfig.seleniumAddress = args.shift(); break;