title: Pass bash file list to python CLI function
body: <p>I am using python's <code>argparse</code> to create command line bindings for popular functions from my software. More specifically I am talking about <a href="https://github.com/TheChymera/organamer/blob/c97a33b49c0aa01250a975d821784c8a50dc080b/src/organamer/cli.py#L7" rel="nofollow">this function</a>.</p>
  
  <p>Usually when I want a CLI function to take a list of inputs in bash, I can do something like:</p>
  
  <pre><code>whateverfunction DSC_4{322..399}*
  </code></pre>
  
  <p>which will pass the function all values from <code>DSC_4322</code> to <code>DSC_4399</code> with whatever suffixes. Now, obvioulsy, this will not work if I am just passing a sting with <code>argparse</code> meaning to crawl the path in python:</p>
  
  <pre><code>parser.add_argument("destination", help="Path to store files into (excluding alphanumeric storage directories)", type=str)
  </code></pre>
  
  <p>Is there any elegant way to allow an <code>argparse</code> positional argument to handle bot a path and a list of files?</p>
  
  <p>The only thing I could think of is detecting the accolades in the string and writing a python script which generates a list for such an input - and  performs a tree crawl for any other kind of input... But I was hoping there might be a nicer way.</p>