Drew Youngwerth

Results 9 comments of Drew Youngwerth

I just published cliffy version 2.4.0 which adds a `cli.showHelp()` method. You could alias the main help menu like this: ```javascript import { CLI } from "cliffy"; // Alias help...

That isn't a bad idea. But you'd have to add special logic for the help command specifically. Internally, the executeCommand method checks to see if the first argument is `help`....

Hi @xJoeyv. Those are some good suggestions. I wont be able work on adding these features for little while. But feel free to submit a pull request.

All good suggestions! Pull requests are welcome. 2 would be an easy one to do. 3 I'll have to consider how I want that behavior to work. Might just add...

Oops. Did not mean to close this. @mbwhite I would absolutely be open to a PR for that.

Hey @tianalemesle. Cliffy doesn't currently support "options" with associated values like in your example. We only support unlabeled parameters. It's an interesting idea, so I'll think about how we might...

Yeah. Not fully supported yet. You can do optional parameters however.

This worked for me, although it clears all selects. ``` javascript AutoForm.addHooks(['insertProductForm'], { onSuccess: function(formType, result) { $('select').each(function() { //Select2 doesnt clear on its own $(this).select2('val', ''); }); } })...

I Haven't had a chance to test the onError case yet.