diff --git a/dockermake/__main__.py b/dockermake/__main__.py index 87e6ac2..724b282 100755 --- a/dockermake/__main__.py +++ b/dockermake/__main__.py @@ -17,6 +17,7 @@ """ from __future__ import print_function import os +import sys from . import cli, utils, staging from .imagedefs import ImageDefs @@ -43,11 +44,12 @@ def main(): return if not os.path.exists(args.makefile): + print('No docker makefile found at path "%s"'%args.makefile) if args.makefile == 'DockerMake.yml': - parser.print_help() - return - else: - raise IOError('No docker makefile found at path "%s"' % args.makefile) + print('Type `docker-make --help` to see usage.') + sys.exit(1) + + defs = ImageDefs(args.makefile)