Your application is supposed to parse CLI arguments.
- support toggle
--exclamationwhich adds!after the greeting, andnamethe last parameter --helpshould print out a help message
Please use Scallop for this task:
- add a library dependency for scallop,
"org.rogach" %%% "scallop" % "3.1.5" - follow the example at https://github.com/scallop/scallop#quick-example
NB! We can use regular Scala library (e.g. scallop in this case).
Normally in SBT, %% adds Scala version suffix (e.g. _2.11),
whereas %%% adds also Scala Native Version (e.g. _0.3_2.11).
To run the application one can just type:
> sbt 'app/run --exclamation World'
or just print help message using:
> sbt 'app/run --help'