tools/mesh-cfgclient: Command line option for config
authorInga Stotland <inga.stotland@intel.com>
Fri, 1 Nov 2019 18:57:27 +0000 (11:57 -0700)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 20:31:58 +0000 (02:01 +0530)
commitf56ca273476222ee11ba396e010ad1ee9b89da55
tree860de9f77e9f44fb822f88d659fca81c212a560a
parente089c1de9a18cf58e73d349406e4e994400bf7df
tools/mesh-cfgclient: Command line option for config

This adds "-c" option to specify full path to configuration file.
If the path is not provided, the application will attempt to open
in the following order:
1) $XDG_CONFIG_HOME/meshcfg/config_db.json
2) $HOME/meshcfg/config_db.json

if the file does not exist, it will be generated for a newly created
network, i.e., upon successful completion of "create" command.

Change-Id: Ica273fe3803a09ab8d54434dbbcb586c0620f16a
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
tools/mesh-cfgclient.c