Drop .0 or .0.0 from version for display
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user