diff --git a/src/cli.js b/src/cli.js
index <HASH>..<HASH> 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -37,17 +37,13 @@ commander
     /^(trace|debug|info|warn|error|silent)$/i,
     'warn')
   .action((host, file, options) => {
-    const { port, username, password, loglevel, command } = options;
-
     if (!host) {
       log.error('Please specify a host to connect to');
       commander.help();
     }
 
-    log.setLevel(loglevel);
-
     const source = file && fs.readFileSync(file);
-    const xapi = connect(host, { port, username, password, command })
+    const xapi = connect(host, options)
       .on('error', (error) => { log.error('xapi error:', error); })
       .on('ready', () => {
         if (source) {
Fix setting correct cli log level

Setting of log level has been moved into `connect`, so whatever we do outside of
it will be reverted by connect. Which is why we also have to pass along all
options to `connect`.