From 128ec15bffec0a17cb9b2948188a2b5b8ece863f Mon Sep 17 00:00:00 2001 From: Leo Bernard Date: Thu, 11 Mar 2021 01:41:04 +0100 Subject: [PATCH] remove `deno run` from help output --- README.md | 6 +++--- mod.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 21b8c07..615b3bc 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ deno run https://deno.land/x/gpto/mod.ts ## Available Options: ``` -Usage: deno run [options] +Usage: [options] Features: -p, --people Adds tagged people from GPhotos as keywords [boolean] @@ -35,6 +35,6 @@ Options: -h, --help Show help [boolean] Examples: - deno run . Run the script in the current folder - deno run --dry-run Run the script without modifying any files + . Run the script in the current folder + --dry-run Run the script without modifying any files ``` \ No newline at end of file diff --git a/mod.ts b/mod.ts index 08aa253..da1cd8b 100644 --- a/mod.ts +++ b/mod.ts @@ -14,7 +14,7 @@ import { ensurePermissions } from "./util/permissions.ts"; import { getRelatedFilePath } from "./util/paths.ts"; const args = yargs(Deno.args) - .usage("Usage: $0 [options] ") + .usage("Usage: [options] ") .strict() .alias("h", "help") .version(false) @@ -46,8 +46,8 @@ const args = yargs(Deno.args) default: 15, }) .example([ - ["$0 .", "Run the script in the current folder"], - ["$0 --dry-run ", "Run the script without modifying any files"], + [".", "Run the script in the current folder"], + ["--dry-run ", "Run the script without modifying any files"], ]).argv; const rootDir: string | undefined = args._[0];