Skip to content

Commit

Permalink
Added help on binary
Browse files Browse the repository at this point in the history
  • Loading branch information
hennlo authored and vogti committed Feb 20, 2022
1 parent 5141ab4 commit f460ce3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public enum RuntimeConfig {
MONITORING_MAXIMUM_POOL_SIZE(
"runtime/maximumPoolSize",
"The maximum number of threads to allow in the pool used for processing workload monitoring events.",
5000,
8,
ConfigType.INTEGER,
"monitoringSettingsQueueGroup" ),

Expand Down
12 changes: 10 additions & 2 deletions dbms/src/main/java/org/polypheny/db/PolyphenyDb.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@

package org.polypheny.db;


import com.github.rvesse.airline.HelpOption;
import com.github.rvesse.airline.SingleCommand;
import com.github.rvesse.airline.annotations.Command;
import com.github.rvesse.airline.annotations.Option;
import com.github.rvesse.airline.annotations.OptionType;
import java.awt.SystemTray;
import java.io.File;
import java.io.Serializable;
import javax.inject.Inject;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.polypheny.db.StatusService.ErrorConfig;
Expand Down Expand Up @@ -84,6 +85,9 @@ public class PolyphenyDb {

private final TransactionManager transactionManager = new TransactionManagerImpl();

@Inject
public HelpOption helpOption;

@Option(name = { "-resetCatalog" }, description = "Reset the catalog")
public boolean resetCatalog = false;

Expand Down Expand Up @@ -131,6 +135,10 @@ public static void main( final String[] args ) {
// Hide dock icon on macOS systems
System.setProperty( "apple.awt.UIElement", "true" );

if (polyphenyDb.helpOption.showHelpIfRequested()) {
return;
}

polyphenyDb.runPolyphenyDb();
} catch ( Throwable uncaught ) {
if ( log.isErrorEnabled() ) {
Expand Down Expand Up @@ -420,4 +428,4 @@ public void join( final long millis ) throws InterruptedException {
}
}

}
}

0 comments on commit f460ce3

Please sign in to comment.