Expand home shorthand in CLI help around THELOUNGE_HOME environment variable

This commit is contained in:
Jérémie Astori 2017-12-07 23:00:27 -05:00
parent 0482747781
commit 52d5cb2311
No known key found for this signature in database
GPG key ID: B9A4F245CD67BDE8

View file

@ -2,6 +2,7 @@
const colors = require("colors/safe");
const fs = require("fs");
const Helper = require("../helper");
const path = require("path");
let home;
@ -13,7 +14,7 @@ class Utils {
"",
" Environment variable:",
"",
` THELOUNGE_HOME Path for all configuration files and folders. Defaults to ${colors.green(Utils.defaultHome())}.`,
` THELOUNGE_HOME Path for all configuration files and folders. Defaults to ${colors.green(Helper.expandHome(Utils.defaultHome()))}.`,
"",
].forEach((e) => console.log(e)); // eslint-disable-line no-console
}