@@ -22,7 +22,7 @@ int main(int argc, char *argv[]) {
22
22
manager.set_log_level (" info" );
23
23
24
24
// Declare the supported options.
25
- po::options_description desc (" Allowed options" );
25
+ po::options_description desc (" and options can be " );
26
26
desc.add_options ()
27
27
(" help" , " produce help message" )
28
28
;
@@ -35,7 +35,7 @@ int main(int argc, char *argv[]) {
35
35
add_string_option ( " config" , " load config commands from file" );
36
36
add_string_option ( " pipe_in" , " specify name for input pipe" );
37
37
add_string_option ( " pipe_out" , " specify name for output pipe" );
38
- add_string_option ( " log_level" , " logging level" );
38
+ add_string_option ( " log_level" , " logging level (trace|debug|info|warning|error|fatal) " );
39
39
// add_string_option( "logfile", "write log to logfile" );
40
40
41
41
po::positional_options_description p;
@@ -46,7 +46,10 @@ int main(int argc, char *argv[]) {
46
46
po::notify (vm);
47
47
48
48
if (vm.count (" help" )) {
49
- cout << argv[0 ] << " : user space G13 driver" << endl;
49
+ cout << " g13d, a user space G13 driver" << endl;
50
+
51
+ cout << " Usage : " << argv[0 ] << " options logo_filename" << endl;
52
+ cout << " where logo_filename is optional " ;
50
53
cout << desc << " \n " ;
51
54
return 1 ;
52
55
}
0 commit comments