Changeset 98:9fda5464ca11

Show
Ignore:
Timestamp:
06/19/08 12:50:54 (5 years ago)
Author:
fbatard
Branch:
default
convert_revision:
svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@99
Message:

added the help option for the command line unicorn application

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • org/w3c/unicorn/tests/UnicornClient.java

    r89 r98  
    4646                UnicornCall aUnicornCall = new UnicornCall(); 
    4747                 
    48                  
     48                if(args.length==1){ 
     49                        if(args[0].equals("help"))print_help(); 
     50                } 
     51                else{ 
    4952                // read parameters 
    5053                String task = args[0]; 
     
    5659                        pParams = args[4];  
    5760                } 
     61                 
    5862                 
    5963 
     
    108112                        } 
    109113                } 
    110                  
    111114                aUnicornCall.setTask(task); //task id 
    112115                aUnicornCall.setLang(language); 
     
    133136                System.out.println("Elapsed time (s): "+(double)(after - before)/1000); 
    134137        } 
     138        } 
    135139}