summaryrefslogtreecommitdiff
path: root/ADSBStats
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2024-07-19 10:50:06 +0100
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2024-07-19 10:50:06 +0100
commit6ab97d2dfe563c2c43c2519b2e6f22494572045c (patch)
tree785e403b6804960fbf52fe64f11aeedf50a05f7c /ADSBStats
parentb32ecfab276fb8e1dff0e1d72ed819b548323328 (diff)
downloadADSBDecoder-6ab97d2dfe563c2c43c2519b2e6f22494572045c.tar.gz
ADSBDecoder-6ab97d2dfe563c2c43c2519b2e6f22494572045c.zip
Add network configuration windows in LearnMapKit
Diffstat (limited to 'ADSBStats')
-rw-r--r--ADSBStats/main.swift14
1 files changed, 11 insertions, 3 deletions
diff --git a/ADSBStats/main.swift b/ADSBStats/main.swift
index 20ea285..d431e1f 100644
--- a/ADSBStats/main.swift
+++ b/ADSBStats/main.swift
@@ -8,7 +8,8 @@
import Foundation
import ArgumentParser
import RegexBuilder
-//import SQLite3
+import SQLite3
+import SwiftData
decoder_debug_mode = false
@@ -16,7 +17,8 @@ struct CommandLineArgs: ParsableCommand {
@Option(name: .shortAndLong) var inputfile: String
@Flag(name: .shortAndLong) var debug:Bool = false
@Flag(name: .shortAndLong) var version:Bool = false
- @Flag(name: .shortAndLong) var show_stats:Bool = false
+ @Flag(name: .shortAndLong) var showstats:Bool = false
+ @Flag(name: .shortAndLong) var dbadd:Bool = false
}
let args = CommandLineArgs.parseOrExit()
@@ -105,7 +107,7 @@ for line in adsb_source.components(separatedBy: .newlines) {
}
-if args.show_stats {
+if args.showstats {
print("----STAT----")
//q_df.showStat()
print(q_df)
@@ -116,3 +118,9 @@ if args.show_stats {
print("Total message:\(count_messages)")
}
+
+//Add new plane names to database
+if args.dbadd {
+ print("Adding to database")
+
+}