[uim-commit] r945 - trunk/uim

tkng at freedesktop.org tkng at freedesktop.org
Wed Jul 6 20:11:14 PDT 2005


Author: tkng
Date: 2005-07-06 20:11:04 -0700 (Wed, 06 Jul 2005)
New Revision: 945

Modified:
   trunk/uim/uim-module-manager.c
Log:
* uim/uim-module-manager.c:
 -(print_usage): Implemented.

Modified: trunk/uim/uim-module-manager.c
===================================================================
--- trunk/uim/uim-module-manager.c	2005-07-07 02:59:36 UTC (rev 944)
+++ trunk/uim/uim-module-manager.c	2005-07-07 03:11:04 UTC (rev 945)
@@ -65,6 +65,7 @@
   return dest;
 }
 
+/* Utility function */
  /* FIXME: Provide a way to pass a list as an argument. */
 static uim_lisp
 get_arguments(void)
@@ -75,7 +76,16 @@
 static void
 print_usage(void)
 {
-  printf("FIXME: write usage\n");
+  printf("Usage:\n");
+  printf("  uim-module-manager [OPTION] modulenames...\n\n");
+  printf("Options:\n");
+  printf("  --register\n");
+  printf("  --unregister\n");
+  printf("  --path path to modules/loader.scm/installed-modules.scm\n");
+  printf("    **  --path option may be removed in the future. **\n\n");
+  printf("Example:\n");
+  printf("  uim-module-manager --register anthy skk\n");
+  printf("  uim-module-manager --register prime --path /usr/local/share/uim\n\n");
 }
 
 static uim_lisp



More information about the uim-commit mailing list