openlava/openlava — Issue #23: lsrun should stop parsing after command
Author: robertomeda
Created: 2012-02-16 14:49:14+00:00
State: open

Hi,
I think lsrun should stop parsing for cmd options after detecting the first command

$ lsid
openlava project 2.0, Feb 2 2012

My cluster name is openlava
My master name is olava
$ lsrun -V
openlava project 2.0
$ lsrun uname
Linux
$ lsrun uname -a
lsrun: invalid option -- 'a'
lsrun: [-h] [-V] [-P] [-v] [-p] [-R] [-m hosts...]
$ lsrun "uname -a"
uname -a: No such file or directory
$ lsrun "uname" "-a"
lsrun: invalid option -- 'a'
lsrun: [-h] [-V] [-P] [-v] [-p] [-R] [-m hosts...]