Add command-line switches to point to config file #80

Open
opened 2020-01-17 20:32:00 +00:00 by tomasino · 1 comment

If you want to use a different config file location there is no mechanism to do this on a per-user basis. At a system level it would require changing code directly in the python script as well. Adding support for a command line parameter to point to the config file should fix this.

If you want to use a different config file location there is no mechanism to do this on a per-user basis. At a system level it would require changing code directly in the python script as well. Adding support for a command line parameter to point to the config file should fix this.
sloum added the
enhancement
label 2020-01-17 21:14:47 +00:00
Collaborator

Hey @tomasino, thanks for the suggestions and feedback! Very cool.

To me, this ties in to your other suggestion in #81, as following the XDG base directory standard for configuration files would allow any person using linkulator to choose their own config location.

The difference with your suggestion here is that a person would choose it when running the application. What are your thoughts about why and when this might be used?

If linkulator followed the XDG base directory standards, you could also do this in the following way:

XDG_CONFIG_HOME=".new_config/" linkulator

Would this approach also achieve the same goals?

Thanks again! I hope you're having a great day today.

Hey @tomasino, thanks for the suggestions and feedback! Very cool. To me, this ties in to your other suggestion in #81, as following the XDG base directory standard for configuration files would allow any person using linkulator to choose their own config location. The difference with your suggestion here is that a person would choose it when running the application. What are your thoughts about why and when this might be used? If linkulator followed the XDG base directory standards, you could also do this in the following way: ```shell XDG_CONFIG_HOME=".new_config/" linkulator ``` Would this approach also achieve the same goals? Thanks again! I hope you're having a great day today.
Sign in to join this conversation.
No description provided.