Skip to content

Commit 0d544b2

Browse files
committed
introduced completion support.
1 parent e895f8b commit 0d544b2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@
4141
{
4242
Arity = ArgumentArity.OneOrMore,
4343
AllowMultipleArgumentsPerToken = true,
44+
4445
ArgumentHelpName = "files"
4546
};
47+
formatOption.AddCompletions(Enum.GetValues<Format>().Select(value => value.ToString().ToLowerInvariant()).ToArray());
4648

4749
var pathArgument = new Argument<string>("path", "The path to the file or the directory that contains the files to calculate the count of. Use '.' to refer to the current directory.");
4850

0 commit comments

Comments
 (0)