@@ -13,12 +13,13 @@ private static void Main(string[] args)
13
13
{
14
14
var record = new Command ( "rec" )
15
15
{
16
- new Argument < FileInfo > ( "file" ) ,
16
+ new Argument < FileInfo > ( "file" ) { Description = "The filename to save the record" } ,
17
17
new Option ( new [ ] { "--command" , "-c" } , "The command to record, default to be powershell.exe" )
18
18
{
19
19
Argument = new Argument < string > ( )
20
20
}
21
21
} ;
22
+ record . Description = "Record and save a session" ;
22
23
record . Handler = CommandHandler . Create ( ( FileInfo file , string command ) =>
23
24
{
24
25
var recordCmd = new RecordCommand ( new RecordArgs
@@ -32,8 +33,9 @@ private static void Main(string[] args)
32
33
33
34
var play = new Command ( "play" )
34
35
{
35
- new Argument < FileInfo > ( "file" )
36
+ new Argument < FileInfo > ( "file" ) { Description = "The record session" }
36
37
} ;
38
+ play . Description = "Play a recorded session" ;
37
39
play . Handler = CommandHandler . Create ( ( FileInfo file ) =>
38
40
{
39
41
var playCommand = new PlayCommand ( new PlayArgs { Filename = file . FullName , EnableAnsiEscape = true } ) ;
@@ -46,13 +48,15 @@ private static void Main(string[] args)
46
48
{
47
49
var authCommand = new AuthCommand ( ) ;
48
50
authCommand . Execute ( ) ;
49
- } )
51
+ } ) ,
52
+ Description = "Auth with asciinema.org"
50
53
} ;
51
54
52
55
var upload = new Command ( "upload" )
53
56
{
54
- new Argument < FileInfo > ( "file" )
57
+ new Argument < FileInfo > ( "file" ) { Description = "The file to be uploaded" }
55
58
} ;
59
+ upload . Description = "Upload a session to ascinema.org" ;
56
60
upload . Handler = CommandHandler . Create ( ( FileInfo file ) =>
57
61
{
58
62
var uploadCommand = new UploadCommand ( file . FullName ) ;
0 commit comments