docopt.cr icon indicating copy to clipboard operation
docopt.cr copied to clipboard

docopt for crystal-lang

Results 2 docopt.cr issues
Sort by recently updated
recently updated
newest added

With [docopt.rb](https://github.com/docopt/docopt.rb/blob/master/lib/docopt.rb) I can put some colorization on my docopt help message. Eg. code https://github.com/noraj/haiti/blob/a8fefceb94d32d2b00fdbb31ad46c725451b588d/bin/haiti#L11-L50 Eg. output ![](https://user-images.githubusercontent.com/16578570/219880029-fce6658e-b8a9-46ee-8256-e0018e86133b.png) But with [docopt.cr](https://github.com/chenkovsky/docopt.cr/blob/master/src/docopt.cr) it breaks the parsing. Eg. colors on usage: ```crystal...

Having Tokens inherit Array(String) was breaking unrelated code because of https://github.com/crystal-lang/crystal/issues/11734 This PR removes the inheritance and replaces it with composition and usage of the delegate macro