18 |
|
while [ $# -gt 0 ] |
19 |
|
do |
20 |
|
case $1 in |
21 |
< |
-full ) |
21 |
> |
--full ) |
22 |
|
action=full; shift;; |
23 |
< |
-help ) |
24 |
< |
echo "cmsglimpse [-H <CMSSW_TAG>] [-full] [glimpse-options] <search term>" |
23 |
> |
--help ) |
24 |
> |
echo "cmsglimpse [-H <CMSSW_TAG>] [--full] [--help] [glimpse-options] <search term>" |
25 |
|
echo "" |
26 |
|
echo " -H <CMSSW_TAG> - specify the CMSSW tag for the release you " |
27 |
|
echo " would like to search (e.g. 'CMSSW_1_0_0'). " |
29 |
|
echo " default to the release corresponding to " |
30 |
|
echo " your current scram runtime environment. " |
31 |
|
echo "" |
32 |
< |
echo " -full - Print the full path to the source files. The " |
32 |
> |
echo " --full - Print the full path to the source files. The " |
33 |
|
echo " default is to print the relative path " |
34 |
|
echo " beginning with the CMSSW subsystem. " |
35 |
|
echo "" |
36 |
+ |
echo " --help - This help information " |
37 |
+ |
echo "" |
38 |
|
echo " [glimpse-options] - any of the glimpse options can also be " |
39 |
< |
echo " specified, except for -H, which is used " |
40 |
< |
echo " as described above. See 'glimpse --help'. " |
39 |
> |
echo " specified, except for -H and --help, which" |
40 |
> |
echo " are used as described above. " |
41 |
> |
echo " See 'glimpse --help' for the full list. " |
42 |
|
exit |
43 |
|
;; |
44 |
|
-H )[ $# -gt 1 ] || { echo "Option \`$1' requires an argument" 1>&2; exit 1; } |