File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ int usage()
74
74
std::cerr << " -j\n "
75
75
<< " Output results in json format where applicable\n "
76
76
<< std::endl;
77
+ std::cerr << " -d" << std::endl;
78
+ std::cerr << " Turn on debug logging\n " << std::endl;
77
79
return 1 ;
78
80
}
79
81
@@ -311,12 +313,13 @@ int on_get_balance( int argc, char **argv )
311
313
commitment cmt = commitment::e_confirmed;
312
314
std::string rpc_host = get_rpc_host ();
313
315
std::string key_dir = get_key_store ();
314
- while ( (opt = ::getopt (argc,argv, " r:k:p:c:h " )) != -1 ) {
316
+ while ( (opt = ::getopt (argc,argv, " r:k:p:c:dh " )) != -1 ) {
315
317
switch (opt) {
316
318
case ' r' : rpc_host = optarg; break ;
317
319
case ' k' : key_dir = optarg; break ;
318
320
case ' p' : knm = optarg; break ;
319
321
case ' c' : cmt = str_to_commitment (optarg); break ;
322
+ case ' d' : log::set_level ( PC_LOG_DBG_LVL ); break ;
320
323
default : return usage ();
321
324
}
322
325
}
You can’t perform that action at this time.
0 commit comments