From: Sasa M. <sa...@us...> - 2004-07-12 13:54:12
|
Update of /cvsroot/jrobin/src/org/jrobin/cmd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20571/org/jrobin/cmd Modified Files: RrdCommander.java Log Message: minor changes in main() Index: RrdCommander.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/cmd/RrdCommander.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RrdCommander.java 12 Jul 2004 13:35:16 -0000 1.1 --- RrdCommander.java 12 Jul 2004 13:54:03 -0000 1.2 *************** *** 120,131 **** public static void main(String[] args) { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); while (true) { try { String s = r.readLine(); ! if(s.equals(".")) { System.exit(0); } ! System.out.println(execute(s)); } catch (IOException e) { System.err.println(e); --- 120,137 ---- public static void main(String[] args) { + System.out.println("== JRobin's RRDTool commander =="); + System.out.println("Type a RRDTool command after the dollar sign and press Enter."); + System.out.println("Start your RRDTool command with 'create', 'update', 'fetch' etc."); + System.out.println("Use any word starting with a dot '.' to bail out"); + System.out.println("================================"); BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); while (true) { try { + System.out.print("$ "); String s = r.readLine(); ! if(s.startsWith(".")) { System.exit(0); } ! execute(s); } catch (IOException e) { System.err.println(e); |