emerge: add --help for 3 new options
authorZac Medico <zmedico@gentoo.org>
Wed, 27 Apr 2011 22:58:16 +0000 (15:58 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 27 Apr 2011 22:58:16 +0000 (15:58 -0700)
pym/_emerge/help.py

index a120f54d39919cfced9748af500edbce4bd81998..ffc81e922b3bc8639b1fe780aaac69009e0cb4bf 100644 (file)
@@ -550,6 +550,12 @@ def help(myopts, havecolor=1):
                print("       "+green("--nospinner"))
                print("              Disables the spinner regardless of terminal type.")
                print()
+               print("       " + green("--nousepkg-atoms") + " " + turquoise("ATOMS"))
+               desc = "A space separated list of package names or slot atoms." + \
+                       " Emerge will ignore matching binary packages."
+               for line in wrap(desc, desc_width):
+                       print(desc_indent + line)
+               print()
                print("       "+green("--oneshot")+" ("+green("-1")+" short option)")
                print("              Emerge as normal, but don't add packages to the world profile.")
                print("              This package will only be updated if it is depended upon by")
@@ -627,6 +633,13 @@ def help(myopts, havecolor=1):
                print("              not trigger reinstallation when flags that the user has not")
                print("              enabled are added or removed.")
                print()
+               print("       " + green("--reinstall-atoms") + " " + turquoise("ATOMS"))
+               desc = "A space separated list of package names or slot atoms. " + \
+                       "Emerge will treat matching packages as if they are not " + \
+                       "installed, and reinstall them if necessary."
+               for line in wrap(desc, desc_width):
+                       print(desc_indent + line)
+               print()
                print("       "+green("--root=DIR"))
                desc = "Set the ROOT environment variable " + \
                        "which is documented in the emerge(1) man page."
@@ -709,6 +722,13 @@ def help(myopts, havecolor=1):
                for line in wrap(desc, desc_width):
                        print(desc_indent + line)
                print()
+               print("       " + green("--useoldpkg-atoms") + " " + turquoise("ATOMS"))
+               desc = "A space separated list of package names or slot atoms." + \
+                       " Emerge will prefer matching binary packages over newer" + \
+                       " unbuilt packages."
+               for line in wrap(desc, desc_width):
+                       print(desc_indent + line)
+               print()
                print("       " + green("--usepkg") + \
                        " [ %s | %s ] (%s short option)" % \
                        (turquoise("y"), turquoise("n"), green("-k")))