From patchwork Sun Jan 23 12:39:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hubert Kario X-Patchwork-Id: 498781 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0NCmgKl006321 for ; Sun, 23 Jan 2011 12:48:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751256Ab1AWMsj (ORCPT ); Sun, 23 Jan 2011 07:48:39 -0500 Received: from dervish.wsisiz.edu.pl ([213.135.44.54]:33127 "EHLO dervish.wsisiz.edu.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751073Ab1AWMsi (ORCPT ); Sun, 23 Jan 2011 07:48:38 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by dervish.wsisiz.edu.pl (Postfix) with ESMTP id B85D4C540E4 for ; Sun, 23 Jan 2011 13:39:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wit.edu.pl; h= message-id:content-transfer-encoding:content-type:content-type :mime-version:user-agent:date:date:subject:subject:from:from :received:received; s=amavisd; t=1295786379; bh=geaNTEf0tJL0RVOi eunpUzOwhUJb2l1u+0NJiPJ4aDU=; b=qnexJYJcMOOVkNKJfBivjMyXjM/tFQF1 ZJhCFLGnUHZLm13HdudltYZEzm6K6MPrfqVfzESELycmQuvWtvrIWvRHsREfnoQG CKDjaR58qN+DzQchv2SIGQSk9ag796A40mQZR1C8Qdpe7xKz60JOv9mqZhtZuXAs EmBtMTuw0N8= X-Virus-Scanned: amavisd-new at wit.edu.pl Received: from dervish.wsisiz.edu.pl ([127.0.0.1]) by localhost (dervish.wsisiz.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aZSQO2bgqmzA for ; Sun, 23 Jan 2011 13:39:39 +0100 (CET) Received: from bursa23.localnet (bursa22.wsisiz.edu.pl [213.135.49.150]) by dervish.wsisiz.edu.pl (Postfix) with ESMTPSA id 95214C54094 for ; Sun, 23 Jan 2011 13:39:39 +0100 (CET) From: Hubert Kario To: linux-btrfs@vger.kernel.org Subject: [PATCH 1/2] add advanced use of --help to help message Date: Sun, 23 Jan 2011 13:39:36 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-ARCH; KDE/4.5.5; i686; ; ) MIME-Version: 1.0 Message-Id: <201101231339.36599.kario@wit.edu.pl> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 23 Jan 2011 12:48:42 +0000 (UTC) diff --git a/btrfs.c b/btrfs.c index 46314cf..b84607a 100644 --- a/btrfs.c +++ b/btrfs.c @@ -151,6 +151,8 @@ static void help(char *np) print_help(np, cp); printf("\n\t%s help|--help|-h\n\t\tShow the help.\n",np); + printf("\n\t%s --help\n\t\tShow detailed help for a command or\n\t\t" + "subset of commands.\n",np); printf("\n%s\n", BTRFS_BUILD_VERSION); }