Menu

#559 System.err on Useage scenario

open
nobody
rules (229)
5
2012-10-07
2011-04-15
No

Should PMD be complaining about System.out or System.err for useage from command line? I use system.out and system.err for useage from command line and was wondering if it should ignore any time you have useage in a string, or should I be using a logger for useage scenarios?

Example

System.out.println("Invalid Argument " + arg[0] + "\n Useage: -s Server -t Track -l Log_file -u Username -p password" );

or

Logger.log("Invalid Argument " + arg[0] + "\n Useage: -s Server -t Track -l Log_file -u Username -p password" );

Discussion


Log in to post a comment.

MongoDB Logo MongoDB