]> git.ipfire.org Git - thirdparty/suricata.git/commit
prscript: rework option logic 1405/head
authorEric Leblond <eric@regit.org>
Fri, 13 Mar 2015 08:55:27 +0000 (09:55 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 7 Apr 2015 09:03:53 +0000 (11:03 +0200)
commitf7a25f2b241fa3cc93f3c82654e6891f231a86ba
treeb2ca2ef302824ef5d331d9920f37d7d65badee4a
parent0b64b992c96cbd8a4c7c35c4a09e7e666dd08895
prscript: rework option logic

Handle cleanly the case where user start docker handling command
without having the dependency installed. The help message does
now say:

```
  -d, --docker          use docker based testing
  -C, --create          create docker container (disabled)
  -s, --start           start docker container (disabled)
  -S, --stop            stop docker container (disabled)

You need to install Python docker module to enable docker container handling
options.
```

And running a disabled options says:

```
$ qa/prscript.py -s
You need to install python docker to use docker handling features.
```
qa/prscript.py