Skip to content

Commit 2c1197a

Browse files
massjhunsaker
authored andcommitted
pyth: Add hidden -d debug logging flag to help text.
1 parent fd68bfa commit 2c1197a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pcapps/pyth.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)