@@ -64,7 +64,20 @@ use lsp::{
6464
6565/// Pivot Lang compiler program
6666#[ derive( Parser ) ]
67- #[ clap( author, version, about, long_about = None ) ]
67+ #[ clap( author, version, about=r#"
68+ _______ __ __ __
69+ | \ | \ | \ | \
70+ | $$$$$$$\ \$$ __ __ ______ _| $$_ | $$ ______ _______ ______
71+ | $$__/ $$| \| \ / \ / \| $$ \ | $$ | \ | \ / \
72+ | $$ $$| $$ \$$\ / $$| $$$$$$\\$$$$$$ | $$ \$$$$$$\| $$$$$$$\| $$$$$$\
73+ | $$$$$$$ | $$ \$$\ $$ | $$ | $$ | $$ __ | $$ / $$| $$ | $$| $$ | $$
74+ | $$ | $$ \$$ $$ | $$__/ $$ | $$| \ | $$_____| $$$$$$$| $$ | $$| $$__| $$
75+ | $$ | $$ \$$$ \$$ $$ \$$ $$ | $$ \\$$ $$| $$ | $$ \$$ $$
76+ \$$ \$$ \$ \$$$$$$ \$$$$ \$$$$$$$$ \$$$$$$$ \$$ \$$ _\$$$$$$$
77+ | \__| $$
78+ \$$ $$
79+ \$$$$$$
80+ "# , long_about = None ) ]
6881struct Cli {
6982 /// Name of the source file
7083 #[ clap( value_parser) ]
@@ -75,13 +88,22 @@ struct Cli {
7588 out : String ,
7689
7790 /// verbose level
78- /// - 0: only error
79- /// - 1: error and warning
80- /// - 2: error, warning and info
81- /// - 3: error, warning, info and debug
82- /// - 4: error, warning, info, debug and trace
83- #[ clap( short, long, default_value = "1" ) ]
84- verbose : u32 ,
91+ /// - default: error and warning
92+ /// - v: error, warning and info
93+ /// - vv: error, warning, info and debug
94+ /// - vvv: error, warning, info, debug and trace
95+ #[ clap(
96+ short,
97+ long,
98+ default_value = "0" ,
99+ action = clap:: ArgAction :: Count ,
100+ help = r"verbose level
101+ - default: error and warning
102+ - v: error, warning and info
103+ - vv: error, warning, info and debug
104+ - vvv: error, warning, info, debug and trace"
105+ ) ]
106+ verbose : u8 ,
85107
86108 /// quiet mode
87109 #[ clap( long, default_value = "false" ) ]
@@ -118,6 +140,7 @@ enum RunCommand {
118140 } ,
119141 /// Start the language server
120142 Lsp ,
143+ /// Format current project
121144 Fmt ,
122145}
123146
@@ -135,7 +158,7 @@ fn main() {
135158 logger
136159 . module ( module_path ! ( ) )
137160 . quiet ( cli. quiet )
138- . verbosity ( cli. verbose as usize ) ;
161+ . verbosity ( cli. verbose as usize + 1 ) ;
139162
140163 let fmt = match cli. command {
141164 Some ( RunCommand :: Fmt ) => true ,
0 commit comments