This repository was archived by the owner on Apr 2, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ class Program
1111 static void Main ( string [ ] args )
1212 {
1313 bool silentMode = ( args . Contains ( "-s" ) || args . Contains ( "--silent" ) ) ;
14+ bool verbose = ( args . Contains ( "-v" ) || args . Contains ( "--verbose" ) ) ;
15+
1416 if ( silentMode )
1517 Console . SetOut ( TextWriter . Null ) ;
1618
@@ -20,23 +22,21 @@ static void Main(string[] args)
2022 Console . WriteLine ( "E-Mail: luzifix@schattenhain.de" ) ;
2123 Console . WriteLine ( "--------------------------------" ) ;
2224
25+ if ( ! args . Contains ( "-noUpdate" ) && ! args . Contains ( "--disableUpdateCheck" ) )
26+ VersionCheck . CheckForUpdate ( verbose ) ;
27+
2328 if ( args . Length <= 0 )
2429 {
2530 ConsoleErrorEnd ( ) ;
2631 }
2732
2833 string filename = Path . GetFullPath ( args [ 0 ] ) ;
29- bool verbose = ( args . Contains ( "-v" ) || args . Contains ( "--verbose" ) ) ;
3034
3135 if ( ! File . Exists ( filename ) )
3236 {
3337 ConsoleErrorEnd ( $ "File { filename } not found!") ;
3438 }
3539
36-
37- if ( ! args . Contains ( "-noUpdate" ) && ! args . Contains ( "--disableUpdateCheck" ) )
38- VersionCheck . CheckForUpdate ( verbose ) ;
39-
4040 new Main ( args [ 0 ] , verbose ) ;
4141
4242 if ( ! silentMode )
Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ public static void CheckForUpdate(bool verbose = false)
4949 }
5050
5151 Console . ForegroundColor = ConsoleColor . Red ;
52- Console . WriteLine ( text ) ;
52+ Console . Error . WriteLine ( text ) ;
5353 Console . ResetColor ( ) ;
5454
55- if ( Console . ReadKey ( ) . Key == ConsoleKey . K )
55+ if ( Console . ReadKey ( ) . Key == ConsoleKey . Y )
5656 {
5757 System . Diagnostics . Process . Start ( realaseURL ) ;
5858 }
You can’t perform that action at this time.
0 commit comments