diff --git a/chipsec_main.py b/chipsec_main.py index cb9322d5..de557e9b 100755 --- a/chipsec_main.py +++ b/chipsec_main.py @@ -371,6 +371,7 @@ class ChipsecMain: options.add_argument('-m', '--module',dest='_module', help='specify module to run (example: -m common.bios_wp)') options.add_argument('-a','--module_args', nargs='*', dest="_module_argv", help="additional module arguments") options.add_argument('-v','--verbose', help='verbose mode', action='store_true') + options.add_argument('--hal', help='HAL mode', action='store_true') options.add_argument('-d','--debug', help='debug mode', action='store_true') options.add_argument('-l','--log', help='output to log file') adv_options = parser.add_argument_group('Advanced Options') @@ -396,8 +397,8 @@ class ChipsecMain: parser.print_help() if self.verbose: logger().VERBOSE = True + if self.hal: logger().HAL = True - logger().DEBUG = True if self.debug: logger().DEBUG = True if self.log: diff --git a/chipsec_util.py b/chipsec_util.py index fa68968a..2b459fe7 100755 --- a/chipsec_util.py +++ b/chipsec_util.py @@ -104,6 +104,7 @@ class ChipsecUtil: options = parser.add_argument_group('Options') options.add_argument('-h', '--help',dest='show_help', help="show this message and exit",action='store_true') options.add_argument('-v','--verbose', help='verbose mode', action='store_true') + options.add_argument('--hal', help='HAL mode', action='store_true') options.add_argument('-d','--debug', help='debug mode', action='store_true') options.add_argument('-l','--log', help='output to log file') options.add_argument('-p','--platform',dest='_platform', help='explicitly specify platform code',choices=chipset.Chipset_Code, type=str.upper) @@ -117,8 +118,8 @@ class ChipsecUtil: parser.print_help() if self.verbose: logger().VERBOSE = True + if self.hal: logger().HAL = True - logger().DEBUG = True if self.debug: logger().DEBUG = True if self.log: