diff mamba/options.py @ 366:d759f49c477d

Option for printing list of uncurated levels.
author Simon Cross <hodgestar@gmail.com>
date Sat, 17 Sep 2011 00:13:29 +0200
parents cc8be536a7fc
children fca61cd8fc33
line wrap: on
line diff
--- a/mamba/options.py	Sat Sep 17 00:09:29 2011 +0200
+++ b/mamba/options.py	Sat Sep 17 00:13:29 2011 +0200
@@ -47,6 +47,9 @@
         parser.add_option("--uncurated", type="str", default=None,
                 dest="uncurated", help="Load uncurated level "
                                        "from the web by name.")
+        parser.add_option("--list-uncurated", action="store_true",
+                          default=False, dest="list_uncurated",
+                          help="List uncurated levels.")
 
     opts, _ = parser.parse_args(args)
 
@@ -56,6 +59,7 @@
     if options.debug:
         options.set_option('level', opts.level)
         options.set_option('uncurated', opts.uncurated)
+        options.set_option('list_uncurated', opts.list_uncurated)
         options.set_option('edit', opts.edit)
 
     options.finalize()