106 headerline.repeat ((header.len()/2)-1); |
106 headerline.repeat ((header.len()/2)-1); |
107 headerline += '-'; |
107 headerline += '-'; |
108 printf ("%s\n%s\n", header.chars(), headerline.chars()); |
108 printf ("%s\n%s\n", header.chars(), headerline.chars()); |
109 |
109 |
110 if (argc < 2) { |
110 if (argc < 2) { |
111 fprintf (stderr, "usage: %s <infile> [outfile]\n", argv[0]); |
111 fprintf (stderr, "usage: %s <infile> [outfile] # compiles botscript\n", argv[0]); |
112 fprintf (stderr, " %s -l # lists commands\n", argv[0]); |
112 fprintf (stderr, " %s -l # lists commands\n", argv[0]); |
113 exit (1); |
113 exit (1); |
114 } |
114 } |
115 |
115 |
116 // A word should always be exactly 4 bytes. The above list command |
116 // A word should always be exactly 4 bytes. The above list command |