mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
vsh: Introduce vshInitReload
Commita0b6a36fseparated vshInitDebug from the original vshInit (before virsh got split and vshInit became virshInit - commit834c5720) in order to be able to debug command line parsing. After the parsing is finished, debugging is reinitialized to work properly. There might as well be other features that require re-initialization as the command line could specify parameters that override our defaults which had been set prior to calling vshArgvParse.
This commit is contained in:
@@ -347,8 +347,9 @@ virshInit(vshControl *ctl)
|
||||
virshControlPtr priv = ctl->privData;
|
||||
|
||||
/* Since we have the commandline arguments parsed, we need to
|
||||
* re-initialize all the debugging to make it work properly */
|
||||
vshInitDebug(ctl);
|
||||
* reload our initial settings to make debugging and readline
|
||||
* work properly */
|
||||
vshInitReload(ctl);
|
||||
|
||||
if (priv->conn)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user