support for fpga client/server network access
[fleet.git] / src / edu / berkeley / fleet / Main.java
1 package edu.berkeley.fleet;
2
3 public class Main {
4
5     public static void main(String[] s) throws Exception {
6         if (s.length == 0) {
7             usage();
8             System.exit(-1);
9         }
10     }
11
12     static void usage() {
13         System.err.println(".........................................................................");
14         System.err.println("Fleet Framework                              UC Berkeley, Sun Labs / 2007");
15         System.err.println("");
16         System.err.println("usage:  java -jar fleet.jar [options] [command] [filename] [args]");
17         System.err.println("");
18         System.err.println("[options] is in the form key=val; supported keys are:");
19         System.err.println("   target={igor,fpga,interp}");
20         System.err.println("   verbose={yes,no}");
21         System.err.println("");
22         System.err.println("[command] is one of:");
23         System.err.println("   asm");
24         System.err.println("   disasm");
25         System.err.println("   typeset");
26         System.err.println("   extract [section]");
27         System.err.println("   run");
28         System.err.println("");
29         System.err.println("[filename] is one of:");
30         System.err.println("   *.fa          Fleet assembler");
31         System.err.println("   *.f0          F0 code (not yet supported)");
32         System.err.println("   *.fo          Fleet binary object");
33         System.err.println("   *.ship        Ship description");
34         System.err.println("");
35         System.err.println("All [args] not consumed by [command] are passed to target");
36         System.err.println("");
37     }
38
39 }