Fix --helpWithSudo

smf-sdk
Lennart Kats 2016-01-03 13:57:00 +01:00
rodzic 9331af2c58
commit 9a0f663ece
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -84,6 +84,7 @@ function main(argv, config, onLoaded) {
.describe("domains", "Primary and any secondary top-level domains to use (e.g, c9.io,c9.dev)")
.describe("exclude", "Exclude specified service")
.describe("include", "Include only specified service")
.describe("helpWithSudo", "Ask for sudo password on startup")
.default("domains", inContainer && process.env.C9_HOSTNAME || process.env.C9_DOMAINS)
.boolean("help")
.describe("help", "Show command line options.");
@ -107,7 +108,7 @@ function main(argv, config, onLoaded) {
var delayed = expanded.filter(function(c) { return delayLoadConfigs.indexOf(c) !== -1 });
var notDelayed = expanded.filter(function(c) { return delayLoadConfigs.indexOf(c) === -1 });
if (options.helpWithSudo)
if (options.argv.helpWithSudo)
return child_process.execFile("sudo", ["echo -n"], main.bind(null, argv.filter(function(a) {
return a !== "--helpWithSudo";
}), config, onLoaded));