qga: allow configuration file path via the cli
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 12 Jul 2024 13:24:58 +0000 (14:24 +0100)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Fri, 19 Jul 2024 08:50:35 +0000 (11:50 +0300)
commitf8bf2347ed6036adf195202fa55c2cb587004679
treed59f11a97ca38a64f030371cb8f25bb9408f0ccf
parent8909fc17329a01dc0dc973486484cc73c8520754
qga: allow configuration file path via the cli

Allowing the user to set the QGA_CONF environment variable to change
the default configuration file path is very unusual practice, made
more obscure since this ability is not documented.

This introduces the more normal '-c PATH'  / '--config=PATH' command
line argument approach. This requires that we parse the comamnd line
twice, since we want the command line arguments to take priority over
the configuration file settings in general.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Message-ID: <20240712132459.3974109-22-berrange@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
docs/interop/qemu-ga.rst
qga/main.c