]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Do not make interactive mode default
authorErik Skultety <eskultet@redhat.com>
Fri, 4 Sep 2015 09:19:55 +0000 (11:19 +0200)
committerErik Skultety <eskultet@redhat.com>
Fri, 4 Sep 2015 12:12:34 +0000 (14:12 +0200)
commita02de849a090e73fcd0074772f96a5cd09881e56
tree6bdde92a940fcc028ed25c3975b78b97a9ce834a
parentf59d51f5184b3559538aaac8dc9bedc3e1e6c0f2
virsh: Do not make interactive mode default

Currently, we set interactive mode as default possibly reverting the
setting after we parse the command line arguments. There's nothing
particulary wrong with that, but a call to vshReadlineInit is performed
always in the global initializer just because the default mode is interactive.
Rather than moving vshReadlineInit call somewhere else (because another client
might want to implement interactive mode only), we could make the decision
if we're about to run in interactive mode once the command line is parsed.
tools/virsh.c