From cf0b3a1937fd0048b0d2031832678dc42efb878b Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Fri, 17 Sep 2010 18:36:51 +0200
Subject: [PATCH] Document common options in ganeti(7)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

So far the β€œ--dry-run” option is not documented at all. This also adds
documentation for the new β€œ--priority” option.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 man/ganeti.sgml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/man/ganeti.sgml b/man/ganeti.sgml
index 74d4499f8..abec40394 100644
--- a/man/ganeti.sgml
+++ b/man/ganeti.sgml
@@ -231,6 +231,37 @@
     </refsect2>
   </refsect1>
 
+  <refsect1>
+    <title>Common options</title>
+
+    <para>
+      Many Ganeti commands provide the following options. The availability for
+      a certain command can be checked by calling the command using the
+      <option>--help</option> option.
+    </para>
+
+    <cmdsynopsis>
+      <command>gnt-<replaceable>...</replaceable> <replaceable>command</replaceable></command>
+      <arg>--dry-run</arg>
+      <arg>--priority <group choice="req">
+        <arg>low</arg>
+        <arg>normal</arg>
+        <arg>high</arg>
+      </group></arg>
+    </cmdsynopsis>
+
+    <para>
+      The <option>--dry-run</option> option can be used to check whether an
+      operation would succeed.
+    </para>
+
+    <para>
+      The option <option>--priority</option> sets the priority for opcodes
+      submitted by the command.
+    </para>
+
+  </refsect1>
+
   &footer;
 
 </refentry>
-- 
GitLab