Drop .0 or .0.0 from version for display

This commit is contained in:
2024-05-30 19:16:42 -04:00
parent 1b65694e05
commit cfa56ec44f
3 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ function printfn(string $format, mixed ...$values): void {
* @param string $title The title to display on the command line
*/
function cli_title(string $title): void {
$appTitle = 'Feed Reader Central ~ v' . FRC_VERSION;
$appTitle = 'Feed Reader Central ~ ' . display_version();
$dashes = ' +' . str_repeat('-', strlen($title) + 2) . '+' . str_repeat('-', strlen($appTitle) + 2) . '+';
printfn($dashes);
printfn(' | %s | %s |', $title, $appTitle);