title: Images not showing up in a list when loading the data through argument parser
body: <p>i am trying to load a set of images from a directory through argument parser in python3 which looks like this:</p>
  
  <pre><code>ap = argparse.ArgumentParser()
  ap.add_argument("-i", "--images", required=True, help="path to images directory")
  args = vars(ap.parse_args())
  </code></pre>
  
  <p>The path parameter for argument parser has been set in Intellij as following:</p>
  
  <pre class="lang-none prettyprint-override"><code>-i ~/Downloads/Person-Detection-in-Various-Postures-master/test_image
  </code></pre>
  
  <p>Now when i try to execute the following statement from my code i get an empty list instead of all the images populated in this list which i can later use in my code further.</p>
  
  <pre><code>imagePaths = list(paths.list_images(args["images"]))
  </code></pre>
  
  <p>How can I populate this list to have all the images stored in it?</p>