title: How can I get Click to ignore unknown options so I don't have to define pydevd variables?
body: <p>My application is callable from the command line and I use Click to parse the options. However, when I run the same main from PyCharm, I have to add the extra options that PyCharm uses when running pydevd.py. This cluters my code with meaningless options and varibles. Example follows:</p>
  
  <pre><code>@click.command()
  @click.option('--myOption1')
  @click.option('--myOption2')
  @click.option('--multiproc',  default=True, is_flag=True) #this option is specific to pydev
  @click.option('--qt-support',default=True, is_flag=True) #this option is specific to pydev
  @click.option('--client') #this option is specific to pydev
  @click.option('--port') #this option is specific to pydev
  @click.option('--file') #this option is specific to pydev
  def doStuff(myOptions1, myOption2, 
              #the following variables are set by click and have nothing to do with my app
              multiproc, qt_support, client, port, file):
      # myAppCode begins here....  
  
  def main():
      doStuff()
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>When PyCharm calls this in the debugger the command is </p>
  
  <pre><code>C:\Anaconda2\python.exe "C:\&lt;aLooongPath&gt;\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 44001 --file C:/myModule.py
  </code></pre>
  
  <p>How can I get it so I can still run the debugger and not have to place the pydevd options as variables into my code?</p>