Closed lebogan closed 8 years ago
It's an interesting use case — albeit one that almost seems too complicated for a command-line tool 😉
In general I don't think I've seen a command-line app framework that supports something like this, but there's a few workarounds I've seen:
-s
without --inline
, or raise an error if you use --inline
without one of the -s
/-e
flags--inline
you have --inline-slim
and --inline-erb
As always, thanks for your insight. Commander can handle this!:-) I'm testing both options so I will close this issue.
Does this even make sense?:
I'm building a simple Sinatra application builder with Commander. On my option to build with the inline method, I want to choose between Slim or Erb. It would go something like this:
Those two flags would only belong to the --inline option.
Thanks for any thoughts on this.