fix argparse error

This commit is contained in:
Sofyan Sugianto 2020-06-12 07:57:58 +07:00
parent 2dfbb33bd4
commit e304bebe9c

View File

@ -15,6 +15,6 @@ def file_monitor(event_to_check):
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--event", type=str, dest=event_to_check, help="Event to check (archive, events, process, publish, sanity)")
parser.add_argument("--event", type=str, dest="event_to_check", help="Event to check (archive, events, process, publish, sanity)")
args = parser.parse_args()
file_monitor(args.event_to_check)