diff --git a/bob/bio/base/script/resources.py b/bob/bio/base/script/resources.py index 15fc021158bd2c40e72f807574e742f31d0a1ad3..c68d6f22202a1f14ece2ecd572ff2dffed071289 100644 --- a/bob/bio/base/script/resources.py +++ b/bob/bio/base/script/resources.py @@ -9,8 +9,8 @@ def resources(command_line_parameters = None): import argparse parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument("--types", '-t', nargs = '+', - choices = ('d', 'database', 'p', 'preprocessor', 'e', 'extractor', 'a', 'algorithm', 'g', 'grid', 'c', 'config'), - default = ('d', 'p', 'e', 'a', 'g', 'c'), + choices = ('d', 'database', 'p', 'preprocessor', 'e', 'extractor', 'a', 'algorithm', 'g', 'grid', 'c', 'config', 'an', 'annotator'), + default = ('d', 'p', 'e', 'a', 'g', 'c', 'an'), help = "Select the resource types that should be listed.") parser.add_argument("--details", '-d', action='store_true', help = "Prints the complete configuration for all resources") @@ -51,6 +51,10 @@ def resources(command_line_parameters = None): print ("\nList of registered configurations:") print (bob.bio.base.list_resources('config', **kwargs)) + if 'an' in args.types or 'annotator' in args.types: + print ("\nList of registered annotators:") + print (bob.bio.base.list_resources('annotator', **kwargs)) + print() def databases(command_line_parameters = None):