herdsman pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=0042d3b2eaac7f2c25e6e5e06b1a931ca1fea844
commit 0042d3b2eaac7f2c25e6e5e06b1a931ca1fea844 Author: Tom Hacohen <[email protected]> Date: Thu Oct 23 15:28:30 2014 +0100 vieet: list the sections of an eet file if a section isn't passed. Thanks to Sachiel for suggesting this feature. --- src/bin/eet/vieet | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/bin/eet/vieet b/src/bin/eet/vieet index 64f7d88..8bfdb4e 100755 --- a/src/bin/eet/vieet +++ b/src/bin/eet/vieet @@ -14,9 +14,17 @@ die() { } usage() { - die "Usage: vieet <eet file> <section>" + die "Usage: vieet <eet file> [section]" } +EETFILE="$1" +SECTION="$2" + +if [ $# -eq 1 ]; then + eet -l "$EETFILE" + exit $? +fi + if [ $# -ne 2 ]; then usage fi @@ -25,8 +33,6 @@ if [ -z "$EDITOR" ]; then die "EDITOR env var must be set." fi -EETFILE="$1" -SECTION="$2" TFILE=$(mktemp) if [ $? -ne 0 ]; then --
