From 52d5cb2311c3f18138ada356efe62b027e1aada0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Thu, 7 Dec 2017 23:00:27 -0500 Subject: [PATCH] Expand home shorthand in CLI help around `THELOUNGE_HOME` environment variable --- src/command-line/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/command-line/utils.js b/src/command-line/utils.js index 5ca3d4d1..f9dd3ce8 100644 --- a/src/command-line/utils.js +++ b/src/command-line/utils.js @@ -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 }