Merge pull request #25961 from p-na/wip-pna-fix-argparse

ceph_argparse: fix --verbose

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2019-01-18 22:38:21 +08:00 committed by GitHub
commit c8cf73015e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1138,7 +1138,7 @@ def validate_command(sigdict, args, verbose=False):
if matched < best_match_cnt:
continue
if verbose:
print("better match: {0} > {1}: {3} ".format(
print("better match: {0} > {1}: {2} ".format(
matched, best_match_cnt, concise_sig(sig)
), file=sys.stderr)
if matched > best_match_cnt: