hoop33 / wry

App.net command-line client for Mac OS X
http://grailbox.com/wry
MIT License
43 stars 6 forks source link

Description/colordescription is a code smell #87

Open hoop33 opened 10 years ago

hoop33 commented 10 years ago

Figure out a better way to handle, so that the text representation is in one spot only.

jeremy-w commented 10 years ago

Maybe eliminate colorDescription in favor of just description, then pass the description through a filter method that strips out the ASCII escapes when non-colored output is desired?

Since description has a special meaning wrt to NSLog's %@ formatter, you might want to pick a name other than description for that, though. usageText maybe?