const p = argv.p || argv.path; if(p) { browser.webContents.send('application:add-path', p.split(path.delimiter));
gulp.task('compile-js', function () { return gulp.src(Settings.js.source + '/' + Settings.js.sourceFile) .pipe(browserify({ insertGlobals : true, debug : !argv.p })) .pipe(rename(Settings.js.outputFile)) .pipe(gulp.dest(Settings.js.static)); });
constructor() { this.port = options.p || config.port; this.root = options.r || config.root; this.indexPage = options.i || config.indexPage; this.enableCacheControl = options.c; this.enableExpires = options.e; this.enableETag = options.t; this.enableLastModified = options.l; this.maxAge = options.m || config.maxAge; }
async function start() { try { // Check for updates on startup checkUpdates(pkg, 3600000) /* Expose the current version of qsv if the programm was invoked with the -v switch */ if (yargs.v) { process.stdout.write(pkg.version) process.exit() } if (yargs.p) { const options = { delimiter: yargs.d || '', header: yargs.h || false, } const cleanedPath = untildify(path.normalize(yargs.p)) const data = await readFile(cleanedPath, 'utf8') const parsedData = await parseCsv(data, options) repl(parsedData) } } catch (error) { process.stderr.write(error) } }
if(argv.p)
port: ifExists(argv.p, config.get('proxyPort')), tmpDir: this.tmpDir, useUpstreamProxy: typeof argv.u !== 'undefined' || config.get('useUpstreamProxy') === true,