@@ -22,7 +22,7 @@ const INST_SET: InstSet = parse::get_fn_ext;
22
22
23
23
#[ derive( Parser ) ]
24
24
#[ clap( name = "Cambridge Pseudoassembly Interpreter" ) ]
25
- #[ clap( version = "0.12 " ) ]
25
+ #[ clap( version = "0.13 " ) ]
26
26
#[ clap( author = "Saadi Save <github.com/SaadiSave>" ) ]
27
27
#[ clap( about = "Run pseudoassembly from Cambridge International syllabus 9618 (2021)" ) ]
28
28
struct Cli {
@@ -34,44 +34,44 @@ struct Cli {
34
34
enum Commands {
35
35
/// Run compiled or plaintext pseudoassembly
36
36
Run {
37
- # [ clap ( help = " Path to the input file containing compiled or plaintext pseudoassembly" ) ]
37
+ /// Path to the input file containing compiled or plaintext pseudoassembly
38
38
path : OsString ,
39
39
40
+ /// Increase logging level
40
41
#[ clap( short = 'v' , long = "verbose" , parse( from_occurrences) ) ]
41
- #[ clap( help = "Increase logging level" ) ]
42
42
verbosity : usize ,
43
43
44
+ /// Show execution time
44
45
#[ clap( short = 't' , long = "bench" ) ]
45
- #[ clap( help = "Show execution time" ) ]
46
46
bench : bool ,
47
47
48
+ /// Format of input file
48
49
#[ clap( arg_enum) ]
49
- #[ clap( default_value_t = InFormats :: Pasm ) ]
50
50
#[ clap( short = 'f' , long = "format" ) ]
51
- #[ clap( help = "Format of input file" ) ]
51
+ #[ clap( default_value_t = InFormats :: Pasm ) ]
52
52
format : InFormats ,
53
53
} ,
54
54
/// Compile pseudoassembly
55
55
Compile {
56
- # [ clap ( help = " Path to the input file containing pseudoassembly" ) ]
56
+ /// Path to the input file containing pseudoassembly
57
57
input : OsString ,
58
58
59
+ /// Path to output file
59
60
#[ clap( short = 'o' , long = "output" ) ]
60
- #[ clap( help = "Path to output file" ) ]
61
61
output : Option < OsString > ,
62
62
63
+ /// Increase logging level
63
64
#[ clap( short = 'v' , long = "verbose" , parse( from_occurrences) ) ]
64
- #[ clap( help = "Increase logging level" ) ]
65
65
verbosity : usize ,
66
66
67
+ /// Format of output file
67
68
#[ clap( arg_enum) ]
68
69
#[ clap( short = 'f' , long = "format" ) ]
69
- #[ clap( help = "Format of output file" ) ]
70
70
#[ clap( default_value_t = OutFormats :: Json ) ]
71
71
format : OutFormats ,
72
72
73
+ /// Minify output
73
74
#[ clap( short = 'm' , long = "minify" ) ]
74
- #[ clap( help = "Minify output" ) ]
75
75
minify : bool ,
76
76
} ,
77
77
}
0 commit comments