mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-26 06:46:30 +00:00
--machine-parseable added
This commit is contained in:
parent
a66f9ee269
commit
b68d28c13b
@ -155,6 +155,9 @@ Print more information while running, for debugging purposes
|
|||||||
.B
|
.B
|
||||||
.IP "--no-color"
|
.IP "--no-color"
|
||||||
Don't use colors; useful for old terminals or integration in other scripts
|
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
|
.SH HOOKS
|
||||||
|
3
src/tomb
3
src/tomb
@ -1662,6 +1662,9 @@ main() {
|
|||||||
fi
|
fi
|
||||||
### End parsing command-specific options
|
### End parsing command-specific options
|
||||||
|
|
||||||
|
if option_is_set --machine-parseable; then
|
||||||
|
opts[--no-color]=''
|
||||||
|
fi
|
||||||
if ! option_is_set --no-color; then
|
if ! option_is_set --no-color; then
|
||||||
autoload colors; colors
|
autoload colors; colors
|
||||||
fi
|
fi
|
||||||
|
@ -110,9 +110,6 @@ function main() {
|
|||||||
while true; do
|
while true; do
|
||||||
undertaker_scheme $scheme $keypath
|
undertaker_scheme $scheme $keypath
|
||||||
r=$?
|
r=$?
|
||||||
if [[ $r == 0 ]]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
if [[ $r == 64 ]]; then
|
if [[ $r == 64 ]]; then
|
||||||
exit 64
|
exit 64
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user