Returns parser.args() containing all program arguments
(self)
| 21 | return argparse.SUPPRESS |
| 22 | |
| 23 | def get_arguments(self): |
| 24 | ''' Returns parser.args() containing all program arguments ''' |
| 25 | |
| 26 | parser = argparse.ArgumentParser(usage=argparse.SUPPRESS, |
| 27 | formatter_class=lambda prog: argparse.HelpFormatter( |
| 28 | prog, max_help_position=80, width=130)) |
| 29 | |
| 30 | self._add_global_args(parser.add_argument_group(Color.s('{C}SETTINGS{W}'))) |
| 31 | self._add_wep_args(parser.add_argument_group(Color.s('{C}WEP{W}'))) |
| 32 | self._add_wpa_args(parser.add_argument_group(Color.s('{C}WPA{W}'))) |
| 33 | self._add_wps_args(parser.add_argument_group(Color.s('{C}WPS{W}'))) |
| 34 | self._add_eviltwin_args(parser.add_argument_group(Color.s('{C}EVIL TWIN{W}'))) |
| 35 | self._add_command_args(parser.add_argument_group(Color.s('{C}COMMANDS{W}'))) |
| 36 | |
| 37 | return parser.parse_args() |
| 38 | |
| 39 | |
| 40 | def _add_global_args(self, glob): |
no test coverage detected