Skip to content

opt(framework): optimization Help Instruction #6197

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

Merged
merged 1 commit into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
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
Expand Up @@ -363,6 +363,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);

if (config.hasPath(Constant.NET_TYPE)
Expand Down
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
Expand Up @@ -2,7 +2,6 @@

import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.joran.JoranConfigurator;
import com.beust.jcommander.JCommander;
import java.io.File;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -56,13 +55,6 @@ public static void main(String[] args) {

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 {
Expand Down
Loading