home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / shell / xd-2.08 / xd-2 / xd / usage.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-30  |  1.4 KB  |  51 lines

  1. /*
  2.                                 U S A G E . C P P
  3. */
  4.  
  5. #include "xd.h"
  6.  
  7.  
  8. #define    VERSION    "L-2.08"
  9. #define YEAR    "1994"
  10.  
  11. void usage(Args const &args)
  12. {
  13.     char const
  14.         *prog;
  15.  
  16.     prog = args.get_progname();
  17.     
  18.     icce_copyright("eXchange Directory ++", VERSION, YEAR, 1);
  19.  
  20.     fprintf(stderr,
  21.     "%s by Frank B. Brokken\n"
  22.     "\n"
  23.         "Usage: %s args\n"
  24.         "Where:\n"
  25.         "   args:  arguments, possibly containing directory separators [/-].\n"
  26.         "\n"
  27.         
  28.     "%s++ eXchanges Directories by interpreting the characters of its\n"
  29.     "argument(s) as the initial characters of nested subdirectories.\n"
  30.     "Multiple arguments or arguments separated by / or - define the\n"
  31.     "initial characters of subsequently nested subdirectories.\n"
  32.     "\n"
  33.     "If the first argument starts with . expansion starts at the current\n"
  34.     "directory; if it's # (# in [0-9]) expansion starts at parent #\n"
  35.     "\n"
  36.         "When the specification results in multiple solutions, a final\n"
  37.         "selection is requested from a displayed list of alternatives.\n"
  38.     "\n"
  39.     "If $HOME" XD_CONF_PATH " contains  `home no'  normal expansions will\n"
  40.     "start at the / directory, rather than at $HOME/.\n"
  41.     "\n"
  42.     "By default an extra expansion is tried starting from the / directory\n"
  43.     "if the expansion from  $HOME/ fails. Use `extra no' to prevent this.\n"
  44.     "Use `extra always' to get it always\n"
  45.     "\n"
  46.         , prog
  47.         , prog
  48.             , prog
  49.         );
  50. }
  51.