title: Manually Pass Argument Through Code (bypass command line argument)
body: <p>I have a script I'm using for python that takes command line arguments, but it only takes 1 command line argument at a time. I want to run multiple 100's of this and I can only do 1 at a time. I'm trying to manually override the command line argument that is passed through. Is there someway to write something in so I can write in what the command line argument is?</p>
  
  <p>For example, the code grabs a command line argument via:</p>
  
  <pre><code>parser.add_argument('name', action='store', help='name')
  </code></pre>
  
  <p>In a perfect world, I want to find something where I can just say on the next line, where argument = 'name', make it "x" (where x I can say whatever I want) and I can pass it through as a module.</p>
  
  <p>The reason I just don't change it is because there is an entire script written that takes into account the argument, and I'd have to go through and rewrite a lot of logic. If I could just override this 1 argument through code, I could effectively have the program run 100s of times. </p>
  
  <p>I tried to do pass an OS argument to manually run the command each time, but the program seems to stall when I run an OS command. </p>
  
  <p>Is this possible? I can't seem to find anything on this, so I'm worried it may not. </p>