From 314e6e2709c4b0ebfe509e262ca366874f9069da Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Wed, 11 Mar 2015 11:59:20 +0000
Subject: [PATCH] CR-6316 OPENDJ-1786 Automate integration of generated content

---
 opendj-cli/src/main/resources/templates/refEntry.ftl |   51 ++++++++++++---------------------------------------
 1 files changed, 12 insertions(+), 39 deletions(-)

diff --git a/opendj-cli/src/main/resources/templates/refEntry.ftl b/opendj-cli/src/main/resources/templates/refEntry.ftl
index 13b3908..db23699 100644
--- a/opendj-cli/src/main/resources/templates/refEntry.ftl
+++ b/opendj-cli/src/main/resources/templates/refEntry.ftl
@@ -78,7 +78,7 @@
  <refsynopsisdiv>
   <cmdsynopsis>
    <command>${name}</command>
-   <arg choice="plain">${args}</arg>
+   <#if args??><arg choice="plain">${args}</arg></#if>
   </cmdsynopsis>
  </refsynopsisdiv>
 
@@ -92,44 +92,17 @@
    <#if info??>${info}</#if>
  </refsect1>
 
- <#if options??>
-   <refsect1>
-    <title>${optsTitle}</title>
-
-    <variablelist>
-     <para>
-      ${optsIntro}
-     </para>
-
-     <#list options as option>
-       <varlistentry>
-         <term><option>${option.synopsis?xml}</option></term>
-         <listitem>
-           <para>
-             ${option.description}
-           </para>
-
-           <#if option.default??>
-             <para>
-               ${option.default}
-             </para>
-           </#if>
-
-           <#if option.info??>${option.info}</#if>
-         </listitem>
-       </varlistentry>
-
-     </#list>
-
-     </variablelist>
-   </refsect1>
+ <#if optionSection??>
+   ${optionSection}
  </#if>
 
- <!-- TODO: subcommands -->
- <!-- TODO: filter -->
- <!-- TODO: attribute -->
- <!-- TODO: exitCodes -->
- <!-- TODO: files -->
- <!-- TODO: examples -->
- <!-- TODO: seeAlso -->
+ <#if subcommands??>
+   ${subcommands}
+ </#if>
+
+ <#if trailingSections??>
+   <#list trailingSections as section>
+    ${section}
+   </#list>
+ </#if>
 </refentry>

--
Gitblit v1.10.0