taking default value in argparse : <p>I am using argparser module and when using the below two commands.
The first works fine, but the second one fails.</p>

<p>SyntaxError: invalid syntax</p>

<p>I want if no value is specified it should take today as the value.</p>

<p>I am fetching the result using results.day</p>

<pre><code>parser.add_argument('-sub4'  , action='store' , dest='subject4' , help='Fourth subject'              , type=str , default="")

parser.add_argument('-day'   , action='store' , dest='day'      , help="yesterday/week default-today , type=str , default="today")
</code></pre>

<p>Thanks</p>
