aboutsummaryrefslogtreecommitdiffstats
path: root/src/relcool.erl
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2013-01-25 04:14:05 -0800
committerJordan Wilberding <[email protected]>2013-01-25 04:14:05 -0800
commite29f7fa585670f2bb1aad6060bfa2fe0aeba1cd8 (patch)
treeccc9c612deac643818f62166c2827c018574f0b6 /src/relcool.erl
parent1a43e62a5ee0ceafb2082a41e632489b48e7f567 (diff)
parent58f0df46df654f6221aff6534477b5df1076e0fa (diff)
downloadrelx-e29f7fa585670f2bb1aad6060bfa2fe0aeba1cd8.tar.gz
relx-e29f7fa585670f2bb1aad6060bfa2fe0aeba1cd8.tar.bz2
relx-e29f7fa585670f2bb1aad6060bfa2fe0aeba1cd8.zip
Merge pull request #21 from ericbmerritt/next
working towards release upgrades
Diffstat (limited to 'src/relcool.erl')
-rw-r--r--src/relcool.erl10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/relcool.erl b/src/relcool.erl
index 974b19f..83886c5 100644
--- a/src/relcool.erl
+++ b/src/relcool.erl
@@ -1,4 +1,4 @@
-%%% -*- mode: Erlang; fill-column: 80; comment-column: 75; -*-
+%% -*- erlang-indent-level: 4; indent-tabs-mode: nil; fill-column: 80 -*-
%%% Copyright 2012 Erlware, LLC. All Rights Reserved.
%%%
%%% This file is provided to you under the Apache License,
@@ -48,7 +48,7 @@ main(Args) ->
{ok, State} ->
run_relcool_process(rcl_state:caller(State, command_line));
Error={error, _} ->
- report_error(rcl_state:caller(rcl_state:new([], []),
+ report_error(rcl_state:caller(rcl_state:new([], undefined),
command_line), Error)
end.
@@ -106,8 +106,9 @@ do(RootDir, RelName, RelVsn, Goals, LibDirs, LogLevel, OutputDir, Overrides, Con
{output_dir, OutputDir},
{lib_dirs, LibDirs},
{root_dir, RootDir},
- {log, rcl_log:new(LogLevel)}],
- Config),
+ {log, rcl_log:new(LogLevel)},
+ {config, Config}],
+ release),
run_relcool_process(rcl_state:caller(State, api)).
@@ -127,6 +128,7 @@ opt_spec_list() ->
"Disable the default system added lib dirs (means you must add them all manually"},
{log_level, $V, "verbose", {integer, 1},
"Verbosity level, maybe between 0 and 2"},
+ {config, $c, "config", string, "The path to a config file"},
{root_dir, $r, "root", string, "The project root directory"}].
-spec format_error(Reason::term()) -> iolist().