trevorld / r-argparse

command-line optional and positional argument parser
https://trevorldavis.com/R/argparse/
GNU General Public License v2.0
104 stars 11 forks source link

R argparse: Line breaks in description #5

Closed dariober closed 9 years ago

dariober commented 9 years ago

Hello,

First, thanks for argparse! I have a problem adding line breaks in the description of the program or in the "help" field of the arguments. I posted a question on StackOverflow describing the issue in more detail: http://stackoverflow.com/questions/27150625/r-argparse-line-breaks-in-description Since nobody has answered yet, I thought linking it here.

All the best Dario

trevorld commented 9 years ago

Have some deadlines I need to meet soon but will try to look into it in a couple of weeks. Right now argparse communicates with the python argparse module and if that module needs a special raw formatter to do that than I'd need to somehow hack that onto my code. Not a high priority for me at this point. Not sure how important this is to you but there are a couple of other argparse like functions out there for R like the argparser package and ArgumentParser class in Xmisc package which might be able to add line breaks. Or if you don't really value good positional argument support you should be able to do this with the optparse package description and help fields.

dariober commented 9 years ago

HI- Thanks for replying. No worries, I can work around the problem!

dariober commented 9 years ago

Hi again- I think I found the solution see StackOverflow http://stackoverflow.com/questions/27150625/r-argparse-line-breaks-in-description

Sorry about the false alarm! Dario

trevorld commented 9 years ago

Glad it works for you now!