root/usage.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. print_usage

   1 /*
   2  *   Compound Text word statistics and search report
   3  *
   4  *   usage.c : statistics & matching usage print
   5  *
   6  *                                       Copyright (c) isao yasuda,1998 
   7  */
   8 static char *rcs_id = "$Id: usage.c,v 1.2 2007/09/09 11:19:57 isao Exp $";
   9 
  10 #include <stdio.h>
  11 #include "staslova.h"
  12 #include "table.h"
  13 
  14 void
  15 print_usage(unsigned char *pn)
  16 {
  17   fprintf(stderr, \
  18           "usage : %s [-s|-m|-a] [-c{0|1}] [-l{0|1|2|3|4|5}] [-o{0|1|2}] [-pCNT]"
  19           "[-h] [-dDEF] < stdin > stdout\n", pn);
  20   fprintf(stderr, \
  21           " -s|m|a  s:statistics m:matching a:both [alternative;default:a]\n"
  22           " -c{0|1} case test 0:lower convert 1:as is [def:0]\n"
  23           " -l{0-5} language preference [def:0(Japanese>Cyrillic>Latins)]\n"
  24           "\t  0:J>C>L, 1:J>L>C, 2:C>J>L, 3:C>L>J, 4:L>J>C, 5:L>C>J\n"
  25           " -o{0-2} report level 0:values 1:0+words 2:1+texts [def:2]\n"
  26           " -pCNT   max counts of word position list\n"
  27           " -h      display simple help (this message)\n"
  28           " -dDEF   DEF is the name of Definition file for execution\n");
  29   fprintf(stderr, \
  30           "\t<Definition file description>\n"
  31           "\t * `#\' of line head means the line is comment.\n"
  32           "\t * To write command from first column of line.\n"
  33           "\t * To insert more than one space after command to operand"
  34           " description.\n"
  35           "\tksx : separators independent\n"
  36           "\t      x 0:ascii 1:Latin-1 2:Latin-2 5:Cyrillic\n");
  37   fprintf(stderr, \
  38           "\tkcx : separators when sequensially written\n"
  39           "\tkpx : separators when pair with separator\n"
  40           "\tjs  : separators (JIS kanji)\n"
  41           "\tjc  : separators when sequensially written (JIS kanji)\n"
  42           "\tjp  : separators when pair with separator (JIS kanji)\n"
  43           "\tse  : search command. *,.,+(or),*(and),#(not)are available.\n\n");
  44 }
  45 
  46 
  47 
  48 

/* [previous][next][first][last][top][bottom][index][help] */