Closed itsSaad closed 8 years ago
This isn't broken for me—can you post your repo or a minimal repo that reproduces this?
Sorry for trouble. Actually it works. mine wasnt because mine was raising a #<LocalJumpError: unexpected return>
when i used return true
in the pre block instead of true
.
Do you know what that is about?
Yeah, return
in Ruby is only really intended to be used inside a method definition. If you use it inside a block (which is what pre
is taking), Ruby tries to return from whatever method that block is. My guess is that it's confused because in your GLI app, you aren't inside a method, but in the special main
object. This stackoverflow question has a bit more detail.
oh. thanks a lot for clearing that up. never thought of it for the last 4 years.
im using it as:
requried: true
is there. but when i use it asbundle exec bin/face provision
on command line. One expects to see an error mentioning you missed a required flag.But it goes through without.