main.cxx

changeset 41
47e686c96d8f
parent 38
e4bbd540663b
child 42
5cd91fd1526c
equal deleted inserted replaced
40:9e4f785501db 41:47e686c96d8f
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

mercurial