From 6cc3d4c442588424fb5b7cb9ac08b4c15383d87d Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Thu, 2 Jan 2025 10:24:29 +0100 Subject: [PATCH] Fix conflict in --path shorthand with --project, --path shorthand is now -t (target) --- src/bin/main.ts | 9 +++++---- .../getExtensionModuleFileSourceCodeReadyToBeCopied.ts | 5 ++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/bin/main.ts b/src/bin/main.ts index cf99ef40..6e6659d5 100644 --- a/src/bin/main.ts +++ b/src/bin/main.ts @@ -303,7 +303,7 @@ program key: "path", name: (() => { const long = "path"; - const short = "p"; + const short = "t"; optionsKeys.push(long, short); @@ -318,11 +318,12 @@ program .option({ key: "revert", name: (() => { - const name = "revert"; + const long = "revert"; + const short = "r"; - optionsKeys.push(name); + optionsKeys.push(long, short); - return name; + return { long, short }; })(), description: [ "Restores a file or directory to its original auto-generated state,", diff --git a/src/bin/sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.ts b/src/bin/sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.ts index 6dcebe3b..7ae6cd6c 100644 --- a/src/bin/sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.ts +++ b/src/bin/sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.ts @@ -104,7 +104,10 @@ function addCommentToSourceCode(params: { `` ].join("\n");