mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 11:53:30 +02:00
Added optional --user-profile-url for opening user profile page in an external domain, it was hardcoded.
This commit is contained in:
10
lib/cli.js
10
lib/cli.js
@@ -593,6 +593,9 @@ program
|
||||
.option('-w, --websocket-url <url>'
|
||||
, 'URL to websocket client'
|
||||
, String)
|
||||
.option('--user-profile-url <url>'
|
||||
, 'URL to external user profile page'
|
||||
, String)
|
||||
.option('-d, --disable-watch'
|
||||
, 'disable watching resources')
|
||||
.action(function(options) {
|
||||
@@ -612,6 +615,7 @@ program
|
||||
, ssid: options.ssid
|
||||
, authUrl: options.authUrl
|
||||
, websocketUrl: options.websocketUrl
|
||||
, userProfileUrl: options.userProfileUrl
|
||||
, disableWatch: options.disableWatch
|
||||
})
|
||||
})
|
||||
@@ -871,6 +875,9 @@ program
|
||||
, 'ADB port (defaults to 5037)'
|
||||
, Number
|
||||
, 5037)
|
||||
.option('--user-profile-url <url>'
|
||||
, 'URL to external user profile page'
|
||||
, String)
|
||||
.action(function() {
|
||||
var log = logger.createLogger('cli:local')
|
||||
, args = arguments
|
||||
@@ -965,6 +972,9 @@ program
|
||||
if (options.disableWatch) {
|
||||
extra.push('--disable-watch')
|
||||
}
|
||||
if (options.userProfileUrl) {
|
||||
extra.push('--user-profile-url', options.userProfileUrl)
|
||||
}
|
||||
return extra
|
||||
})()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user