예제 #1
0
 //constructor
 public SQLiteConnector(ParseCommandLine options)
 {
     QueryDBPath         = options.QueryDBPath;
     LibraryDBPath       = options.LibraryDBPath;
     outputFilename      = options.outputFileName;
     QueryLibraryPairsDB = options.QueryLibraryPairsDBPath;
     GetItemsFromDatabase(); // this opens the database and grabs all of our actual data
 }
예제 #2
0
        static void Main(string[] args)
        {
            var options = new ParseCommandLine();

            if (CommandLine.Parser.Default.ParseArguments(args, options))
            {
                // Values are available here
                Console.WriteLine("Starting Program.");
                new SQLiteConnector(options);
                Console.WriteLine("Finished.");
            }
        }