Project

General

Profile

« Previous | Next » 

Revision 3405

Always output Usage messages to stderr and word-wrap them using `fold -s`

View differences:

bin/filter_errors
4 4
selfDir="$(dirname -- "$0")"
5 5

  
6 6
if ! test "$#" -ge 1; then
7
    echo "Usage: env [n=... (\"\" for all)] $0 grep-options... <input"
7
    echo "Usage: env [n=... (\"\" for all)] $0 grep-options... <input"\
8
    |fold -s >&2
8 9
    exit 2
9 10
fi
10 11

  
bin/ci_map
5 5
selfDir="$(dirname -- "$0")"
6 6

  
7 7
if ! test "$#" -eq 1; then
8
    echo "Usage: $0 map >out_map"
8
    echo "Usage: $0 map >out_map"|fold -s >&2
9 9
    exit 2
10 10
fi
11 11

  
bin/pg_dump_vegbien
4 4
selfDir="$(dirname -- "$0")"
5 5

  
6 6
if ! test "$#" -eq 1; then
7
    echo "Usage: env [data=1] [plain=1] [owners=1] $0 [schema] [opts...] >out"
7
    echo "Usage: env [data=1] [plain=1] [owners=1] $0 [schema] [opts...] >out"\
8
    |fold -s >&2
8 9
    exit 2
9 10
fi
10 11

  
bin/reverse_join
4 4
selfDir="$(dirname -- "$0")"
5 5

  
6 6
if ! test "$#" -eq 1; then
7
    echo "Usage: $0 <map_1 map_0 >joined_map"
7
    echo "Usage: $0 <map_1 map_0 >joined_map"|fold -s >&2
8 8
    exit 2
9 9
fi
10 10

  
bin/row
4 4

  
5 5
if ! test "$#" -eq 1; then
6 6
    echo "Usage: env [n=...] $0 row_num <sheet >row_out
7
Note: Row #s start with 1 after the header (which is row 0)"
7
Note: Row #s start with 1 after the header (which is row 0)"|fold -s >&2
8 8
    exit 2
9 9
fi
10 10

  

Also available in: Unified diff