mirror of https://github.com/eLvErDe/hwraid.git
[megaclisas_status] No need to make --nagios/--debug/--notemp exclusives
This commit is contained in:
parent
fddb6a970d
commit
2c4bb4b531
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue