st2 icon indicating copy to clipboard operation
st2 copied to clipboard

BUG: Not all named parameters have two dashes

Open jfryman opened this issue 11 years ago • 4 comments

Working on a pack for fpm, which takes named arguments. (https://github.com/jordansissel/fpm/wiki)

Not all named parameters have two dashes, as assumed in the current documentation. For example, some of the condensed attributes (like -s or -t or even -n) have only a single dash, yet there does not appear to be a place for me to adjust how parameters are being passed.

jfryman avatar Dec 10 '14 00:12 jfryman

You should be able to adjust that by setting kwarg_op runner param - kwarg_op=- on the command line or in the metadata file

On Dec 10, 2014 1:05 AM, "James Fryman" [email protected] wrote:

Working on a pack for fpm, which takes named arguments. ( https://github.com/jordansissel/fpm/wiki)

Not all named parameters have two dashes, as assumed in the current documentation. For example, some of the condensed attributes (like -s or -t or even -n) have only a single dash, yet there does not appear to be a place for me to adjust how parameters are being passed.

— Reply to this email directly or view it on GitHub.

Kami avatar Dec 10 '14 00:12 Kami

@Kami That's global... but I have a mix of single dashed and multi-dashed parameters in the same action. What would I do there?

Also, we have zero documents on this. I'll create a Jira issue to get it added.

jfryman avatar Dec 10 '14 00:12 jfryman

@jfryman Yeah, you are right. Currently you can only set it globally.

And I also agree about the lack of documentation on this - we should document this feature and add examples of how to use it.

Kami avatar Dec 10 '14 10:12 Kami

It looks like documentation as well as examples of how to use this feature have been created and this issue can be closed.

https://docs.stackstorm.com/actions.html?highlight=two%20dashes.

jacobhuff avatar Aug 17 '23 14:08 jacobhuff