Skip to content

Commit 62ff17a

Browse files
committed
Fix invocation order
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent cc1021b commit 62ff17a

File tree

1 file changed

+5
-6
lines changed
  • app/src/main/java/io/seqera/wave/cli

1 file changed

+5
-6
lines changed

app/src/main/java/io/seqera/wave/cli/App.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,12 @@ public static void main(String[] args) {
205205
}
206206
else if( result.isVersionHelpRequested() ) {
207207
System.out.println(BuildInfo.getFullVersion());
208+
return;
208209
}
209-
else if( app.info ) {
210+
211+
app.setLogLevel();
212+
app.defaultArgs();
213+
if( app.info ) {
210214
app.printInfo();
211215
}
212216
else {
@@ -388,9 +392,6 @@ protected SubmitContainerTokenRequest createRequest() {
388392

389393
@Override
390394
public void run() {
391-
setLogLevel();
392-
// default Args
393-
defaultArgs();
394395
// validate the command line args
395396
validateArgs();
396397
// prepare the request
@@ -654,8 +655,6 @@ protected String condaLock() {
654655
}
655656

656657
void printInfo() {
657-
setLogLevel();
658-
defaultArgs();
659658
System.out.println(String.format("Client:"));
660659
System.out.println(String.format(" Version : %s", BuildInfo.getFullVersion()));
661660
System.out.println(String.format(" System : %s", System. getProperty("os.name")));

0 commit comments

Comments
 (0)