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()
7474 std::cerr << " -j\n "
7575 << " Output results in json format where applicable\n "
7676 << std::endl;
77+ std::cerr << " -d" << std::endl;
78+ std::cerr << " Turn on debug logging\n " << std::endl;
7779 return 1 ;
7880}
7981
@@ -311,12 +313,13 @@ int on_get_balance( int argc, char **argv )
311313 commitment cmt = commitment::e_confirmed;
312314 std::string rpc_host = get_rpc_host ();
313315 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 ) {
315317 switch (opt) {
316318 case ' r' : rpc_host = optarg; break ;
317319 case ' k' : key_dir = optarg; break ;
318320 case ' p' : knm = optarg; break ;
319321 case ' c' : cmt = str_to_commitment (optarg); break ;
322+ case ' d' : log::set_level ( PC_LOG_DBG_LVL ); break ;
320323 default : return usage ();
321324 }
322325 }
You can’t perform that action at this time.
0 commit comments