1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-26 06:25:31 +02:00

dsv: print usage on "dsv setup" without file name

- dsv/dsv (usage): fixed typo
- dsv/dsv (main): it is now an error if "dsv setup" is invoked without
  file name (suggested by Wolfgang Spraul)
This commit is contained in:
Werner Almesberger 2010-12-13 11:52:24 -03:00
parent fb1c75cc4d
commit ff29948b69

View File

@ -33,7 +33,7 @@ usage()
echo "usage: $0 <component>" 2>&1
echo " $0 help" 2>&1
echo " $0 [ls]" 2>&1
echo " $0 setup <info-file> .." 2>&1
echo " $0 setup <info-file> ..." 2>&1
exit 1
}
@ -164,6 +164,7 @@ case "$1" in
help|-*) usage;;
""|ls) list;;
setup) shift
[ "$1" ] || usage
setup "$@";;
*) search "$@";;
esac