t--machine-parseable added - tomb - the crypto undertaker HTML git clone git://parazyd.org/tomb.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit b68d28c13b708d87029f795f89b6a4af8b28b811 DIR parent a66f9ee269d9722e775840510d894d78de49ba18 HTML Author: boyska <piuttosto@logorroici.org> Date: Wed, 16 Nov 2011 21:10:45 +0100 --machine-parseable added Diffstat: M doc/tomb.1 | 3 +++ M src/tomb | 3 +++ M src/undertaker | 3 --- 3 files changed, 6 insertions(+), 3 deletions(-) --- DIR diff --git a/doc/tomb.1 b/doc/tomb.1 t@@ -155,6 +155,9 @@ Print more information while running, for debugging purposes .B .IP "--no-color" Don't use colors; useful for old terminals or integration in other scripts +.B +.IP "--machine-parseable" +The output is easily parseable via software. This implies --no-color .SH HOOKS DIR diff --git a/src/tomb b/src/tomb t@@ -1662,6 +1662,9 @@ main() { fi ### End parsing command-specific options + if option_is_set --machine-parseable; then + opts[--no-color]='' + fi if ! option_is_set --no-color; then autoload colors; colors fi DIR diff --git a/src/undertaker b/src/undertaker t@@ -110,9 +110,6 @@ function main() { while true; do undertaker_scheme $scheme $keypath r=$? - if [[ $r == 0 ]]; then - exit 0 - fi if [[ $r == 64 ]]; then exit 64 fi