Make ExpandPath public.

This commit is contained in:
Alec Thomas
2018-11-06 11:37:26 +11:00
parent e474873f84
commit 072357f8ba
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -336,7 +336,7 @@ func (k *Kong) FatalIfErrorf(err error, args ...interface{}) {
//
// "path" will have ~/ expanded.
func (k *Kong) LoadConfig(path string) (Resolver, error) {
path = expandPath(path)
path = ExpandPath(path)
r, err := os.Open(path) // nolint: gas
if err != nil {
return nil, err