I am refactoring my code to use celery worker.
Before I used to use argparse to pass command line args.
e.g.
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Node')
parser.add_argument('--environment', action="store", default='local', help="env e.g. production of development")
environment = arg_options.environment
But now I get this error.
celery -A tasks worker --loglevel=info --environment local
celery: error: no such option: --environment
How can I add?
I don't want to use environment variable if I don't have to.
e.g export environment=development