Skip to content

Commit

Permalink
Merge pull request #332 from eads/1.0.1
Browse files Browse the repository at this point in the history
bail if not directory specified running tarbell generate, closes #289
  • Loading branch information
eads committed Jun 23, 2015
2 parents de1111c + ea44710 commit ca5e4dd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tarbell/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,13 @@ def tarbell_generate(command, args, skip_args=False, extra_context=None, quiet=F
with ensure_settings(command, args) as settings, ensure_project(command, args) as site:
if not skip_args:
output_root = list_get(args, 0, False)
is_folder = os.path.exists(output_root)
if output_root:
is_folder = os.path.exists(output_root)
else:
puts("\nYou must specify an output directory (e.g. `{0}`)".format(
colored.cyan("tarbell generate _out")
))
sys.exit()
if quiet:
site.quiet = True
if not output_root:
Expand Down

0 comments on commit ca5e4dd

Please sign in to comment.