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"))
|
||||
.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")) {
|
||||
print(CLIHelper.makeArgCLIHelp(defaults));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (args.hasArg("version"))
|
||||
print(
|
||||
"Timestamp\nVersion: ${HelperConsts.TIMESTAMP_VERSION}\nLibAC Version: ${HelperConsts.LIBAC_VERSION}\n\n");
|
||||
|
||||
if (args.hasArg("silent"))
|
||||
print("${TimeUtils.getUnixTimestamp()}");
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue