File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,17 @@ private static async Task Main(string[] args)
2121 CultureInfo . DefaultThreadCurrentCulture = CultureInfo . InvariantCulture ;
2222 CultureInfo . DefaultThreadCurrentUICulture = CultureInfo . InvariantCulture ;
2323
24+ if ( args . Contains ( "--version" ) )
25+ {
26+ var rawVersion = Assembly . GetExecutingAssembly ( )
27+ . GetCustomAttribute < AssemblyInformationalVersionAttribute > ( ) ? . InformationalVersion
28+ ?? "unknown" ;
29+ var version = rawVersion . Contains ( '+' ) ? rawVersion . Substring ( 0 , rawVersion . IndexOf ( '+' ) ) : rawVersion ;
30+ Console . WriteLine ( $ "{ RootCommand . ExecutableName } { version } ") ;
31+ Console . WriteLine ( "Vector Informatik GmbH (C) 2026" ) ;
32+ return ;
33+ }
34+
2435 var rootCommand = new RootCommand ( "FMU Importer for SIL Kit" ) ;
2536
2637 var fmuPathOption = new Option < string > (
You can’t perform that action at this time.
0 commit comments