Add profile command to CLI

This commit is contained in:
Matthew Honnibal 2017-08-21 23:23:05 +02:00
parent 7be5f30f17
commit cec76801dc

View File

@ -7,6 +7,7 @@ if __name__ == '__main__':
import plac import plac
import sys import sys
from spacy.cli import download, link, info, package, train, convert, model from spacy.cli import download, link, info, package, train, convert, model
from spacy.cli import profile
from spacy.util import prints from spacy.util import prints
commands = { commands = {
@ -16,7 +17,8 @@ if __name__ == '__main__':
'train': train, 'train': train,
'convert': convert, 'convert': convert,
'package': package, 'package': package,
'model': model 'model': model,
'profile': profile,
} }
if len(sys.argv) == 1: if len(sys.argv) == 1:
prints(', '.join(commands), title="Available commands", exits=1) prints(', '.join(commands), title="Available commands", exits=1)