Thanks for helping me think this through, Camillo...
Camillo Bruni-3 wrote > > you > conceptionally execute subcommands > Okay, I think I understand your intention better now. I was thinking of options, like "-la" for "ls", but you're talking about different modes, like you would never pass both a script and string, mixing basic code loader and eval... Camillo Bruni-3 wrote > >> * The priority concept seems premature. It adds complexity and confusion >> (the handler for a specific flag is not obvious because it emerges from >> an >> interaction of all the handlers). > ... > and I disagree with you that it adds complexity. Just look at how much > simpler... > I didn't mean that it increased complexity from the mess that you cleaned up :) Just that it may add unnecessary complexity to your simple system. I guess some real world use will reveal whether that's true... Re registry vs. select... if I'm adding a handler that will mask another handler, it seems like that'd be important to know, not to have it happen silently. I'm wondering whether the criteria-based approach adds unneeded flexibility at the cost of making the system less understandable. With a registry, you can have ifPresent: etc... Sean -- View this message in context: http://forum.world.st/Command-Line-Handling-tp4612779p4613781.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
