clap-utils: Allow nonce/offline args to be global

This commit is contained in:
Trent Nelson
2020-09-28 20:59:37 -06:00
committed by Trent Nelson
parent 36d55c0667
commit 972619edb4
5 changed files with 35 additions and 30 deletions

View File

@ -177,7 +177,9 @@ mod tests {
#[test]
fn test_blockhash_query_new_from_matches_ok() {
let test_commands = App::new("blockhash_query_test").nonce_args().offline_args();
let test_commands = App::new("blockhash_query_test")
.nonce_args(false)
.offline_args(false);
let blockhash = hash(&[1u8]);
let blockhash_string = blockhash.to_string();