Always print header when requesting CLI help
This commit is contained in:
parent
e9f56b1579
commit
b8428c1aab
1 changed files with 4 additions and 4 deletions
|
@ -20,15 +20,15 @@ Future<void> main(List<String> lArgs) async {
|
||||||
description: "Only prints the timestamp and newline terminators"))
|
description: "Only prints the timestamp and newline terminators"))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
if (args.hasArg("version") || args.hasArg("help"))
|
||||||
|
print(
|
||||||
|
"Timestamp\nVersion: ${HelperConsts.TIMESTAMP_VERSION}\nLibAC Version: ${HelperConsts.LIBAC_VERSION}\n\n");
|
||||||
|
|
||||||
if (args.hasArg("help")) {
|
if (args.hasArg("help")) {
|
||||||
print(CLIHelper.makeArgCLIHelp(defaults));
|
print(CLIHelper.makeArgCLIHelp(defaults));
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args.hasArg("version"))
|
|
||||||
print(
|
|
||||||
"Timestamp\nVersion: ${HelperConsts.TIMESTAMP_VERSION}\nLibAC Version: ${HelperConsts.LIBAC_VERSION}\n\n");
|
|
||||||
|
|
||||||
if (args.hasArg("silent"))
|
if (args.hasArg("silent"))
|
||||||
print("${TimeUtils.getUnixTimestamp()}");
|
print("${TimeUtils.getUnixTimestamp()}");
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue