From patchwork Wed Feb 10 18:36:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janne Grunau X-Patchwork-Id: 78542 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1AIZB38014826 for ; Wed, 10 Feb 2010 18:35:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756101Ab0BJSfK (ORCPT ); Wed, 10 Feb 2010 13:35:10 -0500 Received: from tichy.grunau.be ([85.131.189.73]:49934 "EHLO tichy.grunau.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753069Ab0BJSfJ (ORCPT ); Wed, 10 Feb 2010 13:35:09 -0500 Received: from localhost (p5DDC401F.dip0.t-ipconnect.de [93.220.64.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tichy.grunau.be (Postfix) with ESMTPSA id 773EB90076 for ; Wed, 10 Feb 2010 19:35:09 +0100 (CET) Date: Wed, 10 Feb 2010 19:36:44 +0100 From: Janne Grunau To: linux-media@vger.kernel.org Subject: [PATCH 3 of 7] czap: reformat and extend usage string Message-ID: <20100210183644.GN8026@aniel.lan> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Mercurial-Node: c1e4c34da4fd395755d98dbbdd7af2950d723a9d User-Agent: Mercurial-patchbomb/1.4.3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 10 Feb 2010 18:35:11 +0000 (UTC) # HG changeset patch # User Janne Grunau # Date 1265823779 -3600 # Node ID c1e4c34da4fd395755d98dbbdd7af2950d723a9d # Parent d79f9e2901a05fbee905998294d9cb1ae46a422d czap: reformat and extend usage string diff -r d79f9e2901a0 -r c1e4c34da4fd util/szap/czap.c --- a/util/szap/czap.c Wed Feb 10 17:45:30 2010 +0100 +++ b/util/szap/czap.c Wed Feb 10 18:42:59 2010 +0100 @@ -241,9 +241,19 @@ } -static const char *usage = "\nusage: %s [-a adapter_num] [-f frontend_id] [-d demux_id] [-c conf_file] [ -H ] {| -n channel_num} [-x]\n" - " or: %s [-c conf_file] -l\n\n"; - +static const char *usage = + "\nusage: %s [options] -l\n" + " list known channels\n" + " %s [options] {-n channel-number|channel_name}\n" + " zap to channel via number or full name (case insensitive)\n" + " -a number : use given adapter (default 0)\n" + " -f number : use given frontend (default 0)\n" + " -d number : use given demux (default 0)\n" + " -c file : read channels list from 'file'\n" + " -x : exit after tuning\n" + " -H : human readable output\n" + " -r : set up /dev/dvb/adapterX/dvr0 for TS recording\n" +; int main(int argc, char **argv) {