fixed null synaopsis
This commit is contained in:
parent
e11a9383ee
commit
2a7f02c5e3
@ -40,12 +40,12 @@ abstract class CLIAppBase implements Process {
|
|||||||
|
|
||||||
private function registerSyncSubcommand(command: String, callback: (Array<String>) -> Bool, synopsis: String = null) {
|
private function registerSyncSubcommand(command: String, callback: (Array<String>) -> Bool, synopsis: String = null) {
|
||||||
_subcommandsSync.set(command, callback);
|
_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) {
|
private function registerAsyncSubcommand(command: String, callback: (Array<String>) -> Future<Bool>, synopsis: String = null) {
|
||||||
_subcommandsAsync.set(command, callback);
|
_subcommandsAsync.set(command, callback);
|
||||||
_subcommandsSynopsis.push(command + " " + synopsis);
|
_subcommandsSynopsis.push(command + " " + (synopsis ?? ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
private function printHelp() {
|
private function printHelp() {
|
||||||
|
Loading…
Reference in New Issue
Block a user