cli: remove usage update from yargs example
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user