Пример #1
0
        ///-------------------------------------------------------------------------------------------------
        /// <summary>Main entry-point for this application.</summary>
        ///
        /// <remarks>Gino Canessa, 7/12/2019.</remarks>
        ///
        /// <param name="args">An array of command-line argument strings.</param>
        ///-------------------------------------------------------------------------------------------------

        static void Main(string[] args)
        {
            // **** start timing ****

            Stopwatch timingWatch = Stopwatch.StartNew();

            // **** initialize our manager ****

            FhirTypeManager.Init();

            // **** process based on command line arguments ****

            Parser.Default.ParseArguments <Options>(args)
            .WithParsed <Options>(options => {
                ProcessFhirDirectory(
                    options
                    );
            })
            .WithNotParsed(errors => { Console.WriteLine("Invalid arguments"); });

            // **** done ****

            long elapsedMs = timingWatch.ElapsedMilliseconds;

            Console.WriteLine($"Finished in: {elapsedMs / 1000.0} s");
        }