Added -l option to specify overlay by name
[g-pypi.git] / g_pypi / cli.py
index 4061029832a109e51403b2b0012079d529d35e15..f9e0da3ea97923ff07f897d59c1d55a50db2ec2c 100755 (executable)
@@ -43,7 +43,7 @@ class StdOut:
 
     """
     Filter stdout or stderr from specific modules
-    So far this is just used for pkg_resources
+    So far this is just used for pkg_resources which is quite noisy
     """
 
     def __init__(self, stream, modulenames):
@@ -354,6 +354,10 @@ def main():
                          "my_p", default=False, help=
                          "Specify MY_P")
 
+    opt_parser.add_option("-l", "--overlay", action='store', dest=
+                         'overlay', metavar='OVERLAY_NAME', default=None, help=
+                         'Specify overy to use by name ($OVERLAY/profiles/repo_name)')
+
     opt_parser.add_option("--format", action='store', dest=
                          "format", default=None, help=
                          "Format when printing to stdout: ansi, html, bbcode, or none")