<div dir="ltr">Docela zajímavý je taky Komandr: <a href="https://github.com/kadirpekel/komandr">https://github.com/kadirpekel/komandr</a> jen ten vyvoj docela ustal.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-02-10 23:53 GMT+01:00 starenka . <span dir="ltr"><<a href="mailto:starenka0@gmail.com" target="_blank">starenka0@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ahoj,<br>
<br>
no nevim, me to funguje...<br>
<br>
starenka /tmp % cat meh.py<br>
#!/usr/bin/env python<br>
# coding=utf-8<br>
<br>
import sys<br>
<br>
print sys.argv<br>
starenka /tmp % python meh.py -20<br>
['meh.py', '-20']<br>
<br>
BTW koukni se spis na argparse (stdlib) nebo docopt (pip /<br>
<a href="https://github.com/docopt/docopt" target="_blank">https://github.com/docopt/docopt</a>)<br>
<br>
s.<br>
---<br>
In Perl you shoot yourself in the foot, but nobody can understand how<br>
you did it. Six months later, neither can you. | print<br>
'aknerats'[::-1]<br>
<br>
<br>
2014-02-10 23:47 GMT+01:00 pythoncaha <<a href="mailto:pythoncaha@gmail.com">pythoncaha@gmail.com</a>>:<br>
<div><div class="h5">> Zdravim vsechny, nemuzu prekonat nasledujici problem, snad nekdo poradi...<br>
><br>
> Spoustim program program.py -20 tedy s parametrem minus20.<br>
> Ale sys.argv[1] mi hodnotu minus 20 nedava.<br>
><br>
> Jak toho docilit.<br>
><br>
> diky Ondra<br>
><br>
</div></div>> _______________________________________________<br>
> Python mailing list<br>
> <a href="mailto:python@py.cz">python@py.cz</a><br>
> <a href="http://www.py.cz/mailman/listinfo/python" target="_blank">http://www.py.cz/mailman/listinfo/python</a><br>
><br>
> Visit: <a href="http://www.py.cz" target="_blank">http://www.py.cz</a><br>
_______________________________________________<br>
Python mailing list<br>
<a href="mailto:python@py.cz">python@py.cz</a><br>
<a href="http://www.py.cz/mailman/listinfo/python" target="_blank">http://www.py.cz/mailman/listinfo/python</a><br>
<br>
Visit: <a href="http://www.py.cz" target="_blank">http://www.py.cz</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><font size="1"><a href="http://github.com/Visgean" target="_blank">github/visgean</a></font><br></div>
</div>