aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguywithcrookedface <guywithcrookedface>2013-06-01 15:33:25 +0000
committerlloyd <[email protected]>2013-06-01 15:33:25 +0000
commit8ea280eb9cfcc8a3a3b11905b8343cfe284bfe9b (patch)
tree29a88a958769c1ee9b98f50098dd6d1a83710897
parent8a2ce8d1dd2eda91f6e3eb56c3082e01b0d40eff (diff)
Merge pull from Christopher Dale <[email protected]>
adding --list-modules option to configure.py Github pull request https://github.com/randombit/botan/pull/1
-rwxr-xr-xconfigure.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 5133ef056..2e9a5ae6b 100755
--- a/configure.py
+++ b/configure.py
@@ -338,6 +338,9 @@ def process_command_line(args):
mods_group.add_option('--disable-modules', dest='disabled_modules',
metavar='MODS', action='append',
help='disable specific modules')
+ mods_group.add_option('--list-modules', dest='list_modules',
+ action='store_true',
+ help='list available modules')
mods_group.add_option('--no-autoload', action='store_true', default=False,
help='disable automatic loading')
@@ -1662,6 +1665,12 @@ def main(argv = None):
(modules, archinfo, ccinfo, osinfo) = load_info_files(options)
+ if options.list_modules:
+ print("Listing modules available for enablement:")
+ for k in sorted(modules.keys()):
+ print(" - " + k)
+ sys.exit(0)
+
if options.chost:
chost = options.chost.split('-')