[megaclisas_status] No need to make --nagios/--debug/--notemp exclusives

This commit is contained in:
Adam Cecile 2021-08-17 09:40:52 +02:00
parent fddb6a970d
commit 2c4bb4b531
1 changed files with 3 additions and 4 deletions

View File

@ -49,10 +49,9 @@ NagiosGoodDisks = {}
if __name__ == '__main__':
# deal with command line options
parser = argparse.ArgumentParser()
group = parser.add_mutually_exclusive_group()
group.add_argument('--nagios', help='enable nagios support', action='store_true')
group.add_argument('--debug', help='enable debugging output', action='store_true')
group.add_argument('--notemp', help='disable temperature reporting', action='store_true')
parser.add_argument('--nagios', help='enable nagios support', action='store_true')
parser.add_argument('--debug', help='enable debugging output', action='store_true')
parser.add_argument('--notemp', help='disable temperature reporting', action='store_true')
args = parser.parse_args()
nagiosmode = args.nagios