1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +02:00

Added optional --user-profile-url for opening user profile page in an external domain, it was hardcoded.

This commit is contained in:
Gunther Brunner 2015-03-17 19:48:41 +09:00
parent f5cb2f91c0
commit e1a7560bc0
6 changed files with 21 additions and 22 deletions

View file

@ -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
})()))