akamensky / argparse

Argparse for golang. Just because `flag` sucks
MIT License
604 stars 62 forks source link

Handle better newlines in help message #70

Open simplylizz opened 4 years ago

simplylizz commented 4 years ago

Hello,

I want to add a list to help message, so each item should be on a new line. Now this looks not very good:

      --input          Possible values:
not set - read from stdin;
gs://<path to file gzipped file> - read from
                       GCS;
pubsub://projects/<project>/subscriptions/<subscription> - fetch input value
                       from PubSub

While the original help string looks like:

    Help: "Possible values:\n" +
        "not set - read from stdin;\n" +
        "gs://<path to file gzipped file> - read from GCS;\n" +
        "pubsub://projects/<project>/subscriptions/<subscription> - fetch input value from PubSub"
akamensky commented 4 years ago

Good suggestion. I don’t really have much time to work on this at the moment. But hopefully someone could help. This should be easily done by a few additions in a method that formats help message.