Skip to content

Commit f6f36de

Browse files
committed
Fix help text for json5 flag.
1 parent fba2094 commit f6f36de

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/exec/extension/publish.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class ExtensionPublish extends extBase.ExtensionBase<ExtensionPublishResu
4040
"root",
4141
"manifests",
4242
"manifestGlobs",
43+
"json5",
4344
"override",
4445
"overridesFile",
4546
"bypassValidation",

app/lib/tfcommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ export abstract class TfCommand<TArguments extends CoreArguments, TResult> {
498498
if (continuedHierarchy === null) {
499499
// Need help with a particular command
500500
let singleArgData = (argName: string, maxArgLen: number) => {
501-
let argKebab = _.kebabCase(argName);
501+
// Lodash's kebab adds a dash between letters and numbers, so this is just a hack to avoid that.
502+
let argKebab = argName === "json5" ? "json5" : _.kebabCase(argName);
502503
const argObj = this.commandArgs[argName];
503504
const shorthandArg = argObj.aliases.filter(a => a.length === 2 && a.substr(0, 1) === "-")[0];
504505
if (shorthandArg) {

0 commit comments

Comments
 (0)