hexylena / argparse2tool

transparently build CWL and Galaxy XML tool definitions for any script that uses argparse
Apache License 2.0
26 stars 10 forks source link

error: unrecognized arguments: --generate-galaxy-xml #30

Closed alexlenail closed 8 years ago

alexlenail commented 8 years ago

Hi Eric, I'm ashamed to admit, I'm not exactly sure how to use this code. I don't think its explicitly specified anywhere. I have a program, which I've stripped down to just the argument parser, and I want to generate xml for it. Am I supposed to run the program without specifying the flags?

python parseME.py --generate-galaxy-xml

Or should I specify the flags as well? Does the program need to terminate successfully in order to generate the xml? Where does the xml get generated?

hexylena commented 8 years ago

Hi @zfrenchee, the flag is --generate_galaxy_xml, sorry for the confusion.

hexylena commented 8 years ago

The XML generated will be sent to stdout, and the program will execute immediately, rather than allowing processing to continue. You do not need to specify any flags other than this one.

I'm sorry for the lack of documentation, it was a neat hack and I haven't worked on it much since. I'm hoping to get back to it eventually but I don't have a timeline for it right now.

alexlenail commented 8 years ago

Ahh, I'm so sorry, that was stupid.