@@ -13,12 +13,13 @@ private static void Main(string[] args)
1313 {
1414 var record = new Command ( "rec" )
1515 {
16- new Argument < FileInfo > ( "file" ) ,
16+ new Argument < FileInfo > ( "file" ) { Description = "The filename to save the record" } ,
1717 new Option ( new [ ] { "--command" , "-c" } , "The command to record, default to be powershell.exe" )
1818 {
1919 Argument = new Argument < string > ( )
2020 }
2121 } ;
22+ record . Description = "Record and save a session" ;
2223 record . Handler = CommandHandler . Create ( ( FileInfo file , string command ) =>
2324 {
2425 var recordCmd = new RecordCommand ( new RecordArgs
@@ -32,8 +33,9 @@ private static void Main(string[] args)
3233
3334 var play = new Command ( "play" )
3435 {
35- new Argument < FileInfo > ( "file" )
36+ new Argument < FileInfo > ( "file" ) { Description = "The record session" }
3637 } ;
38+ play . Description = "Play a recorded session" ;
3739 play . Handler = CommandHandler . Create ( ( FileInfo file ) =>
3840 {
3941 var playCommand = new PlayCommand ( new PlayArgs { Filename = file . FullName , EnableAnsiEscape = true } ) ;
@@ -46,13 +48,15 @@ private static void Main(string[] args)
4648 {
4749 var authCommand = new AuthCommand ( ) ;
4850 authCommand . Execute ( ) ;
49- } )
51+ } ) ,
52+ Description = "Auth with asciinema.org"
5053 } ;
5154
5255 var upload = new Command ( "upload" )
5356 {
54- new Argument < FileInfo > ( "file" )
57+ new Argument < FileInfo > ( "file" ) { Description = "The file to be uploaded" }
5558 } ;
59+ upload . Description = "Upload a session to ascinema.org" ;
5660 upload . Handler = CommandHandler . Create ( ( FileInfo file ) =>
5761 {
5862 var uploadCommand = new UploadCommand ( file . FullName ) ;
0 commit comments