Popular recipes by Ahsan A http://code.activestate.com/recipes/users/126083/2001-10-04T08:07:49-07:00ActiveState Code RecipesSet Default Command-line Arguments (Python)
2001-10-04T08:07:49-07:00Ahsan Ahttp://code.activestate.com/recipes/users/126083/http://code.activestate.com/recipes/79735-set-default-command-line-arguments/
<p style="color: grey">
Python
recipe 79735
by <a href="/recipes/users/126083/">Ahsan A</a>
.
</p>
<p>This script checks if command-line argument 'n' has been passed; if not, it sets
it to the user-defined default value.</p>