title: Celery worker and command line args
body: <p>I am refactoring my code to use celery worker.  </p>
  
  <p>Before I used to use argparse to pass command line args.  </p>
  
  <p>e.g. </p>
  
  <pre><code>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
  </code></pre>
  
  <p>But now I get this error.</p>
  
  <pre><code>celery -A tasks worker --loglevel=info --environment local
  celery: error: no such option: --environment
  </code></pre>
  
  <p>How can I add?</p>
  
  <p>I don't want to use environment variable if I don't have to.</p>
  
  <pre><code>e.g export environment=development
  </code></pre>