Using "from" as a script argument in Python
<p>My assignment requires that "from" be used as an argument for the command line input. </p>

<pre><code>p = optparse.OptionParser()
p.add_option("--from")
p.add_option("--to")
p.add_option("--file", default="carla_coder.ics")
options, arguments = p.parse_args()

print options.from
</code></pre>

<p>obviously, "from" is a Python keyword... is there any way to get around this? Basically, the script should be run using 
<code>file.py --from=dd/mm/yyyy --to=dd/mm/yyyy --file=file</code></p>
