sustrik / ribosome

Simple code generator
248 stars 21 forks source link

ribosome doesn't support arguments (at least not for python) #41

Open acornejo opened 8 years ago

acornejo commented 8 years ago

I get the following error:

$ ./ribosome.py foo.py.dna arg1 arg2 arg3
usage: ribosome code generator, version 1.16 [-h] [--rna] dna
ribosome code generator, version 1.16: error: unrecognized arguments: arg1 arg2 arg3

However, in the documentation here it says the following should work:

$ ribosome.py foo.py.dna arg1 arg2 arg3
sustrik commented 8 years ago

I've merged an outstanding patch that should fix the problem. Try now and report back. Thanks!

acornejo commented 8 years ago

works now.

it doesn't work with the --rna flag, but that is a lesser problem.

i.e. I was expecting the following to work too ribosome.py --args foo.py.dna arg1 arg2 arg3

the only reason I wanted that to work is for debugging, since if an exception happens it is swallowed by ribosome and I don't know what went wrong.

anyway, thanks again, great tool! (much nicer syntax than cheetah, which is what I was using)