INNER CODE UNIT · TypeScript

help

Escape-Technologies/graphman · src/cli.ts:11

function help() {
  console.log(`Error: not enough arguments.
Usage:
  deno run index.ts <GRAPHQL_ENDPOINT_URL>
Options:
  --out=OUTPUT_FILE  Output file path
  -H="header: value"  Header to add to the request, the flag can be used multiple times.
  --AuthHeader="header: value", -A="header: value"  Global header for Postman collection authorization.
Help:
  deno run index.ts [--help | -h]
`);
}

const args = parse(Deno.args, {
  boolean: ["help", "h"],
  collect: ["H"],
  string: ["AuthHeader", "A"],
  alias: {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…