Don't bother with a default value, just require a command line param.
Signed-off-by: Keith Packard <keithp@keithp.com>
AltosPreferences.init(new AltosMapdPreferences());
AltosPreferences.init(new AltosMapdPreferences());
- AltosPreferences.mapdir = new File("/home/keithp/misc/rockets/flights/maps");
+ if (args.length < 1) {
+ System.out.printf("usage: altos-mapd <map-directory>\n");
+ System.exit(1);
+ }
+
+ AltosPreferences.mapdir = new File(args[0]);
for (;;) {
Socket client = server.accept();
for (;;) {
Socket client = server.accept();