case-app icon indicating copy to clipboard operation
case-app copied to clipboard

Note about non litteral in annotations

Open alexarchambault opened this issue 9 years ago • 1 comments

Annotations (@ExtraName, @AppName, @AppVersion, ...) expect litteral arguments. They'll likely crash with variable arguments.

Add a note about that in doc.

alexarchambault avatar Jul 01 '15 09:07 alexarchambault

About @AppVersion, it could be practical to be able to provide its value at runtime, to be able to use the values provided by sbt-buildinfo for example (although these could type their values with singleton types to circumvent that!).

AppOf should have an (overridable) method like

def appVersion: String

where the version for the help message would be read. By default, it would simply provide the version from the @AppVersion annotation.

alexarchambault avatar Nov 19 '15 23:11 alexarchambault