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:
parent
fb1c75cc4d
commit
ff29948b69
3
dsv/dsv
3
dsv/dsv
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user