From 6ab97d2dfe563c2c43c2519b2e6f22494572045c Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Fri, 19 Jul 2024 10:50:06 +0100 Subject: Add network configuration windows in LearnMapKit --- ADSBStats/main.swift | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'ADSBStats/main.swift') 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") + +} -- cgit v1.2.3