-
Notifications
You must be signed in to change notification settings - Fork 10
Understanding argumentParser.py
This page explains what argumentParser.py does
To start off, this module parses whatever was given as argument during the program call.
This is accomplished using argparse. Click on the link to learn more about how argparse works.
As explained by the argparse document above, every argument definition is taken as a variable in the parser class. Hence, the variables that end up in the class object are
-
versionstores the version of the tool -
includeis a list of all the recommendations that the user wants to include for testing. To know how this works during runtime, refer this wiki -
excludeis a list of all the recommendations that the user wants to exclude from testing. To know how this works during runtime, refer this wiki -
levelaccepts either 1 or 2 as argument, based on what profile applicability the user wants to set. To know how this works during runtime, refer this wiki -
scoreaccepts either 0 (NOT SCORED) or 1 (SCORED) as argument, based on what the user wants to test. To know how this works during runtime, refer this wiki -
platformaccepts either server or workstation as argument, based on what the user wants to test. To know how this works during runtime, refer this wiki -
auditoraccepts a string as argument, used to set the name of the person performing the test. To know how this works during runtime, refer this wiki -
orgaccepts a string as argument, used to set the name of the organization where the test is being performed. To know how this works during runtime, refer this wiki -
uniqueaccepts a string as argument, used to set the unique system ID of the system in which the test is being performed. To know how this works during runtime, refer this wiki -
descriptaccepts a string as argument, used to set any description that the user wants to give for their future reference. To know how this works during runtime, refer this wiki -
distaccepts a string as argument, used to specify the distribution of the system being tested. To know how this works during runtime, refer this wiki -
reportaccepts a string as argument, used to specify the spreadsheet(s) that needs to be converted into report(s). To know how this works during runtime, refer this wiki -
expis a list of all the controls that the uses wants the program to explain. To know how this works during runtime, refer this wiki -
verboseis a boolean value, that specifies whether every result is to be displayed on the terminal or not. To know how this works during runtime, refer this wiki