Skip to content

Showing Mutiple Examples #1180

@RealDotNetDave

Description

@RealDotNetDave

I am setting examples (see below), but when I run the program, I do not see the examples from the backup command. Am I doing something wrong?

//Clean commands
_ = config.AddCommand<CleanCommand>("clean")
.WithExample(new[] { "clean" })
.WithExample(new[] { "clean", "--af", "c:\\temp" })
.WithExample(new[] { "clean", "--addfolder", "c:\\temp" })
.WithExample(new[] { "clean", "--rf", "c:\\temp" })
.WithExample(new[] { "clean", "--removefolder", "c:\\temp" })
;

//Backup commands
_ = config.AddCommand<BackupCommand>("backup")
.WithExample(new[] { "backup" })
.WithExample(new[] { "backup", "--turbo" })
.WithExample(new[] { "backup", "--af", "c:\\temp" })
.WithExample(new[] { "backup", "--addfolder", "c:\\temp" })
.WithExample(new[] { "backup", "--rf", "c:\\temp" })
.WithExample(new[] { "backup", "--removefolder", "c:\\temp" })
;

ScreenShot-1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions