Display usage when pkg_add is called with no arguments.

PR:		bin/121093
Submitted by:	volker
Approved by:	portmgr (linimon)
MFC after:	3 days
This commit is contained in:
Brooks Davis 2008-10-17 15:10:45 +00:00
parent 7dbb8c4cc3
commit 962b77f943

View File

@ -259,7 +259,7 @@ main(int argc, char **argv)
}
}
/* If no packages, yelp */
else if (!ch) {
if (!ch) {
warnx("missing package name(s)");
usage();
}