Skip to content

Commit f972609

Browse files
committed
Conform to revised J4JCommandLine API
1 parent 513d6fc commit f972609

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

GeoProcessorApp/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ private static async Task Main( string[] args )
5757
.AddConfigurationInitializers( SetupConfiguration )
5858
.LoggerInitializer( SetupLogging )
5959
.FilePathTrimmer( FilePathTrimmer )
60-
.CommandLineOperatingSystem( CommandLineOperatingSystems.Windows )
61-
.CommandLineOptionsInitializer( SetupOptions )
6260
.AddDependencyInjectionInitializers( SetupDependencyInjection )
6361
.AddServicesInitializers( SetupServices );
6462

63+
hostConfig.AddCommandLineProcessing( CommandLineOperatingSystems.Windows )
64+
.OptionsInitializer( SetupOptions );
65+
6566
_buildLogger = hostConfig.Logger;
6667

6768
if( hostConfig.MissingRequirements != J4JHostRequirements.AllMet )

0 commit comments

Comments
 (0)