util/szap/czap.c | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-)
# HG changeset patch # User Janne Grunau <j@xxxxxxxxxx> # 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 ] {<channel name>| -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) {