cli: remove usage update from yargs example

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-04-26 16:05:42 +02:00
parent 928538513a
commit bf788ea80d
3 changed files with 2 additions and 7 deletions
+2 -2
View File
@@ -62,9 +62,9 @@ export default createCliPlugin({
frontend: { type: 'boolean' },
'with-secrets': { type: 'boolean' },
format: { type: 'string' },
config: { type: 'string', array: true },
config: { type: 'string', array: true, default: [] },
})
.usage(`$0 ${info.usageWithoutProgram}`, info.description)
.usage('$0', info.description)
.help()
.parse(args);
const m =
@@ -121,7 +121,6 @@ export class CliInitializer {
args: [...positionalArgs, ...args.unknown],
info: {
usage: [programName, ...node.command.path].join(' '),
usageWithoutProgram: node.command.path.join(' '),
description: node.command.description,
},
});
-4
View File
@@ -26,10 +26,6 @@ export interface BackstageCommand {
* The usage string of the current command, for example: "backstage-cli repo test"
*/
usage: string;
/**
* The usage string of the current command, without the program name, for example: "repo test"
*/
usageWithoutProgram: string;
/**
* The description provided for the command
*/