File tree Expand file tree Collapse file tree 4 files changed +78
-267
lines changed
Expand file tree Collapse file tree 4 files changed +78
-267
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
33import yargs from "yargs" ;
4+ import { hideBin } from "yargs/helpers" ;
45import { resolve } from "path" ;
56import { VERSION as OctokitVersion } from "@octoherd/octokit" ;
67import chalk from "chalk" ;
@@ -9,7 +10,7 @@ import { octoherd } from "../index.js";
910import { VERSION } from "../version.js" ;
1011import { cliOptions } from "./cli-options.js" ;
1112
12- const argv = yargs
13+ const argv = yargs ( hideBin ( process . argv ) )
1314 . usage ( "Usage: $0 [options] [script] [repos...]" )
1415 . example (
1516 "$0 --token 0123456789012345678901234567890123456789 octokit/rest.js"
Original file line number Diff line number Diff line change 11import yargs from "yargs" ;
2+ import { hideBin } from "yargs/helpers" ;
3+
24import { VERSION as OctokitVersion } from "@octoherd/octokit" ;
35import chalk from "chalk" ;
46
@@ -16,7 +18,7 @@ import { cliOptions } from "./cli-options.js";
1618 * @param {function } script Octoherd Script function
1719 */
1820export function run ( script ) {
19- const argv = yargs
21+ const argv = yargs ( hideBin ( process . argv ) )
2022 . usage ( "Usage: $0 [options] [repos...]" )
2123 . example (
2224 "$0 --token 0123456789012345678901234567890123456789 octokit/rest.js"
You can’t perform that action at this time.
0 commit comments