dgrep: Consistently prefix error messages with program name
Axel Beckert
9 years ago
4 | 4 |
- Fix typo in error message (Closes: #733466)
|
5 | 5 |
* [dgrep]
|
6 | 6 |
- Fix old name "dpkg-grep" in error message.
|
|
7 |
- Consistently prefix error messages with program name.
|
7 | 8 |
|
8 | 9 |
[ Javier Fernández-Sanguino ]
|
9 | 10 |
* [checkrestart]:
|
35 | 35 |
after_args=""
|
36 | 36 |
while test $# -ne 0; do
|
37 | 37 |
case "$1" in
|
38 | |
--recursive|--d*=recurse) echo >&2 "recursive grep not supported"
|
|
38 |
--recursive|--d*=recurse) echo >&2 "dgrep: recursive grep not supported"
|
39 | 39 |
exit 1
|
40 | 40 |
;;
|
41 | 41 |
--d*=skip) ;;
|
42 | |
--d*=read) echo >&2 "--directories=read not supported"; exit 1 ;;
|
|
42 |
--d*=read) echo >&2 "dgrep: --directories=read not supported"; exit 1 ;;
|
43 | 43 |
--help)
|
44 | 44 |
echo "Usage: dgrep [most grep options] <pattern> <package>..."; exit 0 ;;
|
45 | 45 |
--*) ;;
|
46 | 46 |
-*)
|
47 | 47 |
case "$1" in
|
48 | |
-*r*) echo >&2 "recursive grep not supported"; exit 1 ;;
|
|
48 |
-*r*) echo >&2 "dgrep: recursive grep not supported"; exit 1 ;;
|
49 | 49 |
esac
|
50 | 50 |
;;
|
51 | 51 |
esac
|