ref: 87e220f3631616f7fd10a858c92cbd8b53d9d495
parent: 2611e792fc02998e019f2e26eafc36b0f491cf62
author: Keith Peters <kp@bit-101.com>
date: Sun Feb 23 07:00:30 EST 2025
update README with alt config directions, remove todo comment.
--- a/README.md
+++ b/README.md
@@ -166,6 +166,14 @@
* Linux: `/home/<username>/.local/share/m8c/config.ini`
* MacOS: `/Users/<username>/Library/Application Support/m8c/config.ini`
+You can choose to load an alternate configuration with the `--config` command line option. Example:
+
+```
+m8c --config alternate_config.ini
+```
+
+This looks for a config file with the given name in the same directory as the default config. If you specify a config file that does not exist, a new default config file with the specified name will be created, which you can then edit.
+
Enjoy making some nice music!
-----------
--- a/src/main.c
+++ b/src/main.c
@@ -49,8 +49,6 @@
// Initialize the config to defaults read in the params from the
// configfile if present
config_params_s conf = init_config(config_filename);
-
- // TODO: take cli parameter to override default configfile location
read_config(&conf);
// allocate memory for serial buffer
--
⑨