mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Add positional arguments (#32)
This commit is contained in:
committed by
Alexey Golub
parent
ed87373dc3
commit
e48839b938
@@ -14,7 +14,7 @@ namespace CliFx.Demo.Commands
|
||||
{
|
||||
private readonly LibraryService _libraryService;
|
||||
|
||||
[CommandOption("title", 't', IsRequired = true, Description = "Book title.")]
|
||||
[CommandArgument(0, Name = "title", IsRequired = true, Description = "Book title.")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[CommandOption("author", 'a', IsRequired = true, Description = "Book author.")]
|
||||
|
||||
Reference in New Issue
Block a user