Conditions | 1 |
Total Lines | 21 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python3 |
||
25 | def get_arguments(args): |
||
26 | """ |
||
27 | Parses and returns script arguments |
||
28 | :param args: |
||
29 | :return: |
||
30 | """ |
||
31 | parser = argparse.ArgumentParser(prog='lighthouse_garden', description='Monitoring performance data by lighthouse.') |
||
32 | parser.add_argument('-v', '--verbose', |
||
33 | help='Enable extended console output', |
||
34 | required=False, |
||
35 | action='store_true') |
||
36 | parser.add_argument('-c', '--config', |
||
37 | help='Path to config file', |
||
38 | required=False, |
||
39 | type=str) |
||
40 | parser.add_argument('--clear', |
||
41 | help='Clear all performance data and reset the application', |
||
42 | required=False, |
||
43 | action='store_true') |
||
44 | |||
45 | return parser.parse_args() |
||
46 | |||
50 |