summaryrefslogtreecommitdiff
path: root/ao-tools
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2010-11-22 21:07:10 -0700
committerBdale Garbee <bdale@gag.com>2010-11-22 21:07:10 -0700
commit5523e7d55ecc8d310e495fa4f5115f7483c42d65 (patch)
treebcd7fbcfe3431a8d6797f7de26ef181a637b3302 /ao-tools
parent22c09781af1df4b38562b577e9926c23e4a397f2 (diff)
add a rudimentary --help for command line use
Diffstat (limited to 'ao-tools')
-rw-r--r--ao-tools/altosui/AltosUI.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/ao-tools/altosui/AltosUI.java b/ao-tools/altosui/AltosUI.java
index 93a5e0d8..94c4dd2a 100644
--- a/ao-tools/altosui/AltosUI.java
+++ b/ao-tools/altosui/AltosUI.java
@@ -353,7 +353,14 @@ public class AltosUI extends JFrame {
public static void main(final String[] args) {
int process = 0;
/* Handle batch-mode */
- if (args.length == 3 && args[0].equals("--fetchmaps")) {
+ if (args.length == 1 && args[0].equals("--help")) {
+ System.out.printf("Usage: altosui [OPTION]... [FILE]...\n");
+ System.out.printf(" Options:\n");
+ System.out.printf(" --fetchmaps <lat> <lon>\tpre-fetch maps for site map view\n");
+ System.out.printf(" --replay <filename>\t\trelive the glory of past flights \n");
+ System.out.printf(" --csv\tgenerate comma separated output for spreadsheets, etc\n");
+ System.out.printf(" --kml\tgenerate KML output for use with Google Earth\n");
+ } else if (args.length == 3 && args[0].equals("--fetchmaps")) {
double lat = Double.parseDouble(args[1]);
double lon = Double.parseDouble(args[2]);
AltosSiteMap.prefetchMaps(lat, lon, 5, 5);