fix type of arg

pull/26/head
Andrew de Quincey 2021-05-01 09:42:21 +01:00
rodzic 2ea32dd05f
commit 92002c7a0b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -79,7 +79,7 @@ def tune(csvfile, targettemp):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Record data for kiln tuning')
parser.add_argument('csvfile', type=str, help="The CSV file to write to.")
parser.add_argument('--targettemp', type='int', default=400, help="The target temperature to drive the kiln to.")
parser.add_argument('--targettemp', type=int, default=400, help="The target temperature to drive the kiln to.")
args = parser.parse_args()
tune(args.csvfile, args.targettemp)