fixed null synaopsis

This commit is contained in:
Djeeberjr 2023-05-31 18:39:36 +02:00
parent e11a9383ee
commit 2a7f02c5e3

View File

@ -40,12 +40,12 @@ abstract class CLIAppBase implements Process {
private function registerSyncSubcommand(command: String, callback: (Array<String>) -> Bool, synopsis: String = null) {
_subcommandsSync.set(command, callback);
_subcommandsSynopsis.push(command + " " + synopsis);
_subcommandsSynopsis.push(command + " " + (synopsis ?? ""));
}
private function registerAsyncSubcommand(command: String, callback: (Array<String>) -> Future<Bool>, synopsis: String = null) {
_subcommandsAsync.set(command, callback);
_subcommandsSynopsis.push(command + " " + synopsis);
_subcommandsSynopsis.push(command + " " + (synopsis ?? ""));
}
private function printHelp() {