import { pathToFileURL } from "url"; import yargs from "yargs"; import { hideBin } from "yargs/helpers"; import { generate, RunAtOption } from "./generate.js"; import type { GrantOptions, UserScriptManagerName } from "./generators/index.js"; import { scase } from "./utils/common.js"; const names: UserScriptManagerName[] = [ "greasemonkey", "tampermonkey", "violentmonkey", ]; const cli = yargs(hideBin(process.argv)); const sharedOpts = { c: { alias: "collapse", default: true, description: "When using `match all