From owner-svn-src-head@FreeBSD.ORG Fri Oct 17 15:10:45 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C225F1065689; Fri, 17 Oct 2008 15:10:45 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AD4CC8FC19; Fri, 17 Oct 2008 15:10:45 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9HFAjqF091326; Fri, 17 Oct 2008 15:10:45 GMT (envelope-from brooks@svn.freebsd.org) Received: (from brooks@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9HFAjWf091325; Fri, 17 Oct 2008 15:10:45 GMT (envelope-from brooks@svn.freebsd.org) Message-Id: <200810171510.m9HFAjWf091325@svn.freebsd.org> From: Brooks Davis Date: Fri, 17 Oct 2008 15:10:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r183979 - head/usr.sbin/pkg_install/add X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2008 15:10:45 -0000 Author: brooks Date: Fri Oct 17 15:10:45 2008 New Revision: 183979 URL: http://svn.freebsd.org/changeset/base/183979 Log: Display usage when pkg_add is called with no arguments. PR: bin/121093 Submitted by: volker Approved by: portmgr (linimon) MFC after: 3 days Modified: head/usr.sbin/pkg_install/add/main.c Modified: head/usr.sbin/pkg_install/add/main.c ============================================================================== --- head/usr.sbin/pkg_install/add/main.c Fri Oct 17 15:06:34 2008 (r183978) +++ head/usr.sbin/pkg_install/add/main.c Fri Oct 17 15:10:45 2008 (r183979) @@ -259,7 +259,7 @@ main(int argc, char **argv) } } /* If no packages, yelp */ - else if (!ch) { + if (!ch) { warnx("missing package name(s)"); usage(); }