From e08b473d0eeb467ad358ba5314157753b4f37c18 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 5 Jan 2020 23:26:04 +0100 Subject: Implement commandline config override (Fixes #26) --- README.md | 7 ++ config.c | 364 ++++++++++++++++++++++++++++++++++++++-------------------- config.h | 44 +++++++ midimonster.c | 29 ++++- midimonster.h | 24 ---- 5 files changed, 314 insertions(+), 154 deletions(-) diff --git a/README.md b/README.md index e955d53..2496dfa 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,8 @@ The MIDImonster takes as it's first argument the name of an optional configurati to use (`monster.cfg` is used as default if none is specified). The configuration file syntax is explained in the next section. +The current MIDIMonster version can be queried by passing *-v* as command-line argument. + ## Configuration Each protocol supported by MIDIMonster is implemented by a *backend*, which takes @@ -76,6 +78,11 @@ To make an instance available for mapping channels, it requires at least the `[ ]` configuration stanza. Most backends require additional configuration for their instances. +Backend and instance configuration options can also be overriden via command line +arguments using the syntax `-b .