Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support ~ in config file paths #295

Closed
senorprogrammer opened this issue Aug 13, 2018 · 1 comment
Closed

Does not support ~ in config file paths #295

senorprogrammer opened this issue Aug 13, 2018 · 1 comment
Labels
💪 improvement "Where we're going, we don't need roads."

Comments

@senorprogrammer
Copy link
Collaborator

What's the problem?

When specifying a custom config file path, cannot use ~:

wtf --config=~/Desktop/simple_config.yml

2018/08/13 09:29:56 main.go:169: stat /Users/ccummer/go/src/github.com/senorprogrammer/wtf/~/Desktop/simple_config.yml: no such file or directory

How did you expect it to behave?

Treat that as the home directory and path from there.

Operating system

Terminal program & version

WTF version

@senorprogrammer senorprogrammer added 🐛 bug "Houston, we've had a problem." medium labels Aug 13, 2018
@deltaxflux
Copy link
Contributor

Using ~ is mostly a bad idea because ~ doesn't extend to the full path. Better is $HOME because this extend to the full path like /home/<user>. So this a minor problem.

@senorprogrammer senorprogrammer added 💪 improvement "Where we're going, we don't need roads." and removed medium 🐛 bug "Houston, we've had a problem." labels Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 improvement "Where we're going, we don't need roads."
Development

No branches or pull requests

2 participants