Skip to content
Snippets Groups Projects
Commit 0414a71b authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Add support for listing annotator configs

parent 9234ab61
No related branches found
No related tags found
1 merge request!137Add support for listing annotator configs
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment