home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / finger / part02 / switch.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-03  |  2.3 KB  |  57 lines

  1. /*
  2.  * switch.h -- switch definitions for finger
  3.  *
  4.  * Copyright (C) 1987, 1990  Philip L. Budne
  5.  *
  6.  * This file is part of "Phil's Finger Program".
  7.  *
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 1, or (at your option)
  11.  * any later version.
  12.  *
  13.  */
  14.  
  15. # define SWITCH_RCSID "$Id: switch.h,v 3.0 90/07/06 13:11:50 budd Rel $"
  16.  
  17. /* string, unique length, action(routine in args.c), help */
  18. SWITCH("age",        1,set_age,    "display job age rather than idle time")
  19. SWITCH("berkeley",  1,set_berkeley,"user names imply /plan/whois")
  20. # ifdef DEBUGSW
  21. SWITCH("debug",        1,set_debug,"enable debug output")
  22. # endif /* DEBUGSW defined */
  23. # ifdef notdef
  24. SWITCH("fields",    2,set_fields,"output for awk /fields[:sep] sets FS")
  25. # endif /* notdef defined */
  26. SWITCH("follow",    2,set_follow,"let finger do the walking (follow .forward)")
  27. SWITCH("help",        1,display_help,"display help (you are looking at it)")
  28. SWITCH("its",        1,set_its,"format output more like MIT-ITS finger")
  29. SWITCH("location",  1,set_location,"ignore user set ttylocs")
  30. SWITCH("mail-check",3,set_mail,    "show information about mail file")
  31. SWITCH("match-user",1,set_match,"match on user name only")
  32. # ifdef INQUIRE
  33. SWITCH("noinquire", 1,set_noinquire,"prohibit using inquire database")
  34. # endif /* INQUIRE defined */
  35. SWITCH("noplan",    3,set_noplan,"prohibit plan display")
  36. # ifdef SAVED_NLIST
  37. SWITCH("nosave-nlist",3,set_nosave,"prohibit saving of /vmunix namelist file")
  38. # endif /* SAVED_NLIST defined */
  39. SWITCH("output-idle",1,set_output,"show time since last output to terminal")
  40. SWITCH("plan-check",1,set_plan,    "show plan files")
  41. SWITCH("pid",        2,set_pid,    "show process id")
  42. # ifdef SAVED_NLIST
  43. SWITCH("read-nlist",1,set_read, "force reading of /vmunix namelist file")
  44. # endif /* SAVED_NLIST defined */
  45. SWITCH("short",        1,set_jobs,    "short form (same as /jobs)")
  46. SWITCH("state",        1,set_state,"display process state in place of idle time")
  47. SWITCH("user-match",1,set_match,"alias for /match-user")
  48. SWITCH("whois",        1,set_whois,"display personal info (whois command)")
  49. SWITCH("whoj",        4,set_jobs, "alias for /short")
  50. SWITCH("version",   1,display_version, "display version")
  51.  
  52. /*
  53.  * Local variables:
  54.  * comment-column: 40
  55.  * End:
  56.  */
  57.