UNPKG

@splode/obake

Version:

Check merchants for deals.

29 lines 1.1 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var yargs_1 = __importDefault(require("yargs")); var helpers_1 = require("yargs/helpers"); /** * parseFlags attempts to parse the given arguments into a configured set of arguments. * * @param args The arguments to parse * @returns The parsed arguments object */ function parseFlags(args) { return (0, yargs_1.default)((0, helpers_1.hideBin)(args)) .options({ config: { type: "string", alias: "c", default: "config.toml", describe: "Path to config file", }, }) .scriptName("obake") .usage("Obake automates checking merchants for deals.\n\n Usage:\n $0 [options]") .epilog("Author: Christopher Murphy <flyweight@pm.me>\nRepo: https://github.com/splode/obake").argv; } exports.default = parseFlags; //# sourceMappingURL=flags.js.map