Skip to content

Commit afb59e2

Browse files
authored
Improve output of new version notice (#190)
***NO_CI***
1 parent 270469f commit afb59e2

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

nanoFirmwareFlasher.Tool/Program.cs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ public static async Task<int> Main(string[] args)
5454
// check for empty argument collection
5555
if (!args.Any())
5656
{
57-
#if !VS_CODE_EXTENSION_BUILD
58-
// perform version check
59-
CheckVersion();
60-
Console.WriteLine();
61-
#endif
62-
6357
// no argument provided, show help text and usage examples
6458

6559
// because of short-comings in CommandLine parsing
@@ -84,9 +78,20 @@ public static async Task<int> Main(string[] args)
8478

8579
Console.WriteLine(helpText.ToString());
8680

81+
#if !VS_CODE_EXTENSION_BUILD
82+
// perform version check
83+
CheckVersion();
84+
Console.WriteLine();
85+
#endif
86+
8787
return (int)ExitCodes.OK;
8888
}
8989

90+
#if !VS_CODE_EXTENSION_BUILD
91+
// perform version check
92+
CheckVersion();
93+
Console.WriteLine();
94+
#endif
9095
var parsedArguments = Parser.Default.ParseArguments<Options>(args);
9196

9297
await parsedArguments

0 commit comments

Comments
 (0)