home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / HPFSLS.ZOO / lshelp.c < prev    next >
C/C++ Source or Header  |  1992-02-17  |  2KB  |  39 lines

  1. /*
  2.  * Mostra l'help.
  3.  * (C)1990 by redmax@alessia.dei.unipd.it (Massimo A. Santin)
  4.  * $Log:    lshelp.c $
  5.  * Revision 1.1  91/05/08  20:02:02  Unknown
  6.  * Initial revision
  7.  * 
  8.  */
  9.  
  10. #include "ls.h"
  11.  
  12. static char rcsid[] = "$Header: d:/usr/utils/ls/rcs/lshelp.c 1.1 91/05/08 20:02:02 Unknown Exp $";
  13.  
  14. void print_help(void)
  15. {
  16.    #ifdef OS2_ONLY
  17.       #define MSG "OS/2 LS 1.104\n"
  18.    #else
  19.       #define MSG "OS/2 & DOS LS 1.104\n"
  20.    #endif
  21.    fprintf(stderr, MSG);
  22.    fprintf(stderr, "usage: LS [-lan[hsad]s[ek]t[caw]xRpF?h] [name(s)]\n");
  23.    fprintf(stderr, "-l          long listing (with attributes)\n");
  24.    fprintf(stderr, "-a          include all files\n");
  25.    fprintf(stderr, "-n[hsad]    include files with normal (default), hidden, system, archive,\n");
  26.    fprintf(stderr, "            directory attributes\n");
  27.    fprintf(stderr, "-s[ek]      size (default), effective size, in Kbytes\n");
  28.    fprintf(stderr, "-t[caw]     time of creation, last access, last write (default)\n");
  29.    fprintf(stderr, "-x          wide listing\n");
  30.    fprintf(stderr, "-R          recursive listing of subdirectories\n");
  31.    fprintf(stderr, "-p          put '\\' at end of directories\n");
  32.    fprintf(stderr, "-F          '-p' + put '*' at end of executables\n");
  33.    fprintf(stderr, "-E          list extended attributes (EA)\n");
  34.    fprintf(stderr, "-V          show volume informations\n");
  35.    fprintf(stderr, "\nLS requires OS/2 version 1.2 or above.\n");
  36.    fprintf(stderr, "(c)1990 by redmax@alessia.dei.unipd.it (M.A.Santin).\n");
  37.    exit(1);
  38. } /* print_help */
  39.