Friday, March 30, 2007

Extended command-line functionality.

Since the software passed through series of accounting bugs and seems to be stable now, I've decided to focus more on code quality and overall software usability. The first step I've decided to do was aiming "smart" command line arguments handling. Googled a bit and stuck at first with Processing command line arguments in Java: Case closed but despite it was looking great, some of internals didn't work out. After googling a little bit more stuck with CLI package of the Jakarta/Apache commons project. This one worked out of the box. DONE.

H:\home\senin\projects\iclouds>java -jar build\jar\iclouds.jar
usage: java -jar iclouds.jar
-acclimit specifies the accretion events limit
-config specifies config file to use
-density specifies the cloud density
-dhratio specifies the D/H ratio
-help print this message
-itrlimit specifies the iterations limit
-logfile use given file for log
-loggerfile use given file for log
-loglevel specifies the logger level [severe | fine | finer | finest]

No comments: