gbp-clone: better document --all
authorGuido Günther <agx@sigxcpu.org>
Mon, 27 Dec 2010 20:38:15 +0000 (21:38 +0100)
committerGuido Günther <agx@sigxcpu.org>
Mon, 27 Dec 2010 20:38:15 +0000 (21:38 +0100)
docs/manpages/gbp-clone.sgml
gbp-clone

index 559da83..526f3f7 100644 (file)
@@ -22,6 +22,7 @@
       &gbp-clone;
 
       <arg><option>--verbose</option></arg>
+      <arg><option>--all</option></arg>
       <arg><option>--[no-]pristine-tar</option></arg>
       <arg><option>--debian-branch=</option><replaceable>branch_name</replaceable></arg>
       <arg><option>--upstream-branch=</option><replaceable>branch_name</replaceable></arg>
 
     <variablelist>
       <varlistentry>
+        <term><option>--all</option>
+        </term>
+        <listitem>
+         <para>Track all branches, not only <replaceable>debian</replaceable>
+         and <replaceable>upstream</replaceable>.
+        </listitem>
+      </varlistentry>
+      <varlistentry>
         <term><option>--debian-branch</option>=<replaceable>branch_name</replaceable>
         </term>
         <listitem>
@@ -68,7 +77,7 @@
         <term><option>--pristine-tar</option>
         </term>
         <listitem>
-          <para>generate pristine-tar delta file</para>
+          <para>Track pristine tar branch.</para>
         </listitem>
       </varlistentry>
     </variablelist>
index 1a291f3..a2429fe 100755 (executable)
--- a/gbp-clone
+++ b/gbp-clone
@@ -34,14 +34,15 @@ def main(argv):
 
     parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='',
                              usage='%prog [options] repository - clone a remote repository')
-    branch_group = GbpOptionGroup(parser, "branch options", "branch layout options")
+    branch_group = GbpOptionGroup(parser, "branch options", "branch tracking and layout options")
     parser.add_option_group(branch_group)
 
+    branch_group.add_option("--all", action="store_true", dest="all", default=False,
+                            help="track all branches, not only debian and upstream")
     branch_group.add_config_file_option(option_name="upstream-branch", dest="upstream_branch")
     branch_group.add_config_file_option(option_name="debian-branch", dest="debian_branch")
     branch_group.add_boolean_config_file_option(option_name="pristine-tar", dest="pristine_tar")
-    parser.add_option("--all", action="store_true", dest="all", default=False,
-                      help="Track all branches, not only debian and upstream")
+
     parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
                       help="verbose command execution")
     parser.add_config_file_option(option_name="color", dest="color")