Fixup script structure for entrypoints

This commit is contained in:
Scott Kitterman
2018-03-26 03:35:03 -04:00
parent 30062b3c2b
commit e50d3907ae
6 changed files with 124 additions and 108 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ def ExtractEd25519PublicKey(private_key_file, dns_file, priv_key):
print >> dns_fp, "k=ed25519; p={0}".format(output)
dns_fp.close()
def main(argv):
def main():
parser = argparse.ArgumentParser(
description='Produce DKIM keys.',)
parser.add_argument('key_name', action="store")
@@ -121,4 +121,4 @@ def main(argv):
if __name__ == '__main__':
main(sys.argv)
main()