Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opt(framework): optimization Help Instruction #6268

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions framework/src/main/java/org/tron/core/config/args/Args.java
Original file line number Diff line number Diff line change
@@ -373,6 +373,13 @@ public static void setParam(final String[] args, final String confFileName) {
exit(0);
}

if (PARAMETER.isHelp()) {
JCommander jCommander = JCommander.newBuilder().addObject(Args.PARAMETER).build();
jCommander.parse(args);
Args.printHelp(jCommander);
exit(0);
}

Config config = Configuration.getByFileName(PARAMETER.shellConfFileName, confFileName);
setParam(config);
}
8 changes: 0 additions & 8 deletions framework/src/main/java/org/tron/program/FullNode.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.tron.program;

import com.beust.jcommander.JCommander;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.tron.common.application.Application;
@@ -28,13 +27,6 @@ public static void main(String[] args) {

LogService.load(parameter.getLogbackPath());

if (parameter.isHelp()) {
JCommander jCommander = JCommander.newBuilder().addObject(Args.PARAMETER).build();
jCommander.parse(args);
Args.printHelp(jCommander);
return;
}

if (Args.getInstance().isDebug()) {
logger.info("in debug mode, it won't check energy time");
} else {