From 2a7f02c5e39e64156513ec01736576d85f15ddfd Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Wed, 31 May 2023 18:39:36 +0200 Subject: [PATCH] fixed null synaopsis --- src/lib/CLIAppBase.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/CLIAppBase.hx b/src/lib/CLIAppBase.hx index 3489cda..48c7218 100644 --- a/src/lib/CLIAppBase.hx +++ b/src/lib/CLIAppBase.hx @@ -40,12 +40,12 @@ abstract class CLIAppBase implements Process { private function registerSyncSubcommand(command: String, callback: (Array) -> Bool, synopsis: String = null) { _subcommandsSync.set(command, callback); - _subcommandsSynopsis.push(command + " " + synopsis); + _subcommandsSynopsis.push(command + " " + (synopsis ?? "")); } private function registerAsyncSubcommand(command: String, callback: (Array) -> Future, synopsis: String = null) { _subcommandsAsync.set(command, callback); - _subcommandsSynopsis.push(command + " " + synopsis); + _subcommandsSynopsis.push(command + " " + (synopsis ?? "")); } private function printHelp() {