nirinA / erfa_python

Python wrapper for ERFA library
The Unlicense
6 stars 0 forks source link

ex_ephem.py fails if given negative coordinates #5

Closed nirinA closed 10 years ago

nirinA commented 10 years ago

if latitude or longitude arguments are negative, argparse failed to parse them:

ex_ephem.py: error: argument -l/--latitude: expected one argument

this is rather an argparse bug !

nirinA commented 10 years ago

use equal sign to pass the negative argument:

python3 /ex_ephem.py  -L 47:38:25 --latitude=-18:57:03 -a 1258.0 2015/02/01T23:58:50