mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-25 23:04:44 +02:00
[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__':
|
if __name__ == '__main__':
|
||||||
# deal with command line options
|
# deal with command line options
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
group = parser.add_mutually_exclusive_group()
|
parser.add_argument('--nagios', help='enable nagios support', action='store_true')
|
||||||
group.add_argument('--nagios', help='enable nagios support', action='store_true')
|
parser.add_argument('--debug', help='enable debugging output', action='store_true')
|
||||||
group.add_argument('--debug', help='enable debugging output', action='store_true')
|
parser.add_argument('--notemp', help='disable temperature reporting', action='store_true')
|
||||||
group.add_argument('--notemp', help='disable temperature reporting', action='store_true')
|
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
nagiosmode = args.nagios
|
nagiosmode = args.nagios
|
||||||
|
Loading…
x
Reference in New Issue
Block a user