Fix onoff

This commit is contained in:
Korneliusz Osmenda
2022-09-06 19:32:31 +02:00
parent 1ab4dd2308
commit 48b50fad6d
+2 -2
View File
@@ -12,8 +12,8 @@ if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Control power')
group = parser.add_mutually_exclusive_group()
group.add_argument('-0', '--on', action='store_true')
group.add_argument('-1', '--off', action='store_true')
group.add_argument('-1', '--on', action='store_true')
group.add_argument('-0', '--off', action='store_true')
args = parser.parse_args()