title: Flask-script add a command and an option
body: <p>I want to have a boolean flag and an option that n arguments for my command. Desired example usage:</p>
  
  <pre><code>python manage.py my_command --all # Execute my_command with all id's
  
  python manage.py my_command --ids id1 id2 id3 ... # Execute my_command with n ids
  
  python manage.py my_command --all --ids id1 id2 id3 ... # Throw an error
  </code></pre>
  
  <p>My function looks like this right now (The body of the function also has the logic to throw an error if both are provided):</p>
  
  <pre><code>@my_command_manager.option("--all", dest="all_ids", default=False, help="Execute for all ids.")
  @my_command_manager.option("--ids", dest="ids", nargs="*", help="The ids to execute.")
  def my_command(ids, all_ids=False): #do stuff
  </code></pre>
  
  <p>This works for the --ids option, but the --all option says: <code>error: argument --all: expected one argument</code>. </p>
  
  <p>TLDR: How can I have both an option and a command?</p>