mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-26 03:40:26 +00:00
Change variable name argparser to parser
Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
parent
d70d446d69
commit
f005c3369a
@ -766,23 +766,26 @@ def main():
|
|||||||
Perform argument parsing, and create an instance of NameCheck to begin the
|
Perform argument parsing, and create an instance of NameCheck to begin the
|
||||||
core operation.
|
core operation.
|
||||||
"""
|
"""
|
||||||
argparser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||||
description=(
|
description=(
|
||||||
"This script confirms that the naming of all symbols and identifiers "
|
"This script confirms that the naming of all symbols and identifiers "
|
||||||
"in Mbed TLS are consistent with the house style and are also "
|
"in Mbed TLS are consistent with the house style and are also "
|
||||||
"self-consistent.\n\n"
|
"self-consistent.\n\n"
|
||||||
"Expected to be run from the MbedTLS root directory."))
|
"Expected to be run from the MbedTLS root directory.")
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"-v", "--verbose",
|
||||||
|
action="store_true",
|
||||||
|
help="show parse results"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"-q", "--quiet",
|
||||||
|
action="store_true",
|
||||||
|
help="hide unnecessary text, explanations, and highlighs"
|
||||||
|
)
|
||||||
|
|
||||||
argparser.add_argument("-v", "--verbose",
|
args = parser.parse_args()
|
||||||
action="store_true",
|
|
||||||
help="show parse results")
|
|
||||||
|
|
||||||
argparser.add_argument("-q", "--quiet",
|
|
||||||
action="store_true",
|
|
||||||
help="hide unnecessary text, explanations, and highlighs")
|
|
||||||
|
|
||||||
args = argparser.parse_args()
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
name_check = NameCheck(verbose=args.verbose)
|
name_check = NameCheck(verbose=args.verbose)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user