validate interface name in init command

This commit is contained in:
Artur Girenko 2016-02-11 12:54:05 +01:00
parent 59edcd3591
commit f9631e3be3
1 changed files with 2 additions and 1 deletions

View File

@ -504,7 +504,8 @@ cli.command 'init <name>'
e.g.
re-natal init HelloWorld
'''
unless interfaceConf[cmd.interface]
logErr "Unsupported React interface: #{cmd.interface}, one of [#{interfaceNames}] was expected."
ensureFreePort -> init(cmd.interface, name)
cli.command 'upgrade'