UNPKG

flagpole

Version:

Simple and fast DOM integration and REST API testing framework.

31 lines (28 loc) 664 B
import { Flagpole } from "./flagpole"; // Process command line inputs let lastArg: string | null = null; let env: string | null = null; process.argv.forEach(function (arg: string) { if (lastArg == '-e') { env = arg; Flagpole.setEnvironment(env); } else if (lastArg == '-o') { Flagpole.setOutput(arg); Flagpole.automaticallyPrintToConsole = true; } else if (arg == '-q') { Flagpole.quietMode = true; lastArg = null; return; } else if (arg == '-l') { Flagpole.logOutput = true; lastArg = null; return; } lastArg = arg; }); export { Flagpole };