aboutsummaryrefslogtreecommitdiffstats
path: root/test/rclt_command_SUITE.erl
diff options
context:
space:
mode:
authorEric <[email protected]>2013-01-24 21:03:53 -0800
committerEric <[email protected]>2013-01-24 21:03:53 -0800
commit6c90453d79cd1e8cf35cb4f6ad4ee51d7be39e50 (patch)
treedec64fc42b184decdeb92a75805a88da622bd72d /test/rclt_command_SUITE.erl
parente02d59de76a2f0c0e0311f22e4779652a1375ee9 (diff)
downloadrelx-6c90453d79cd1e8cf35cb4f6ad4ee51d7be39e50.tar.gz
relx-6c90453d79cd1e8cf35cb4f6ad4ee51d7be39e50.tar.bz2
relx-6c90453d79cd1e8cf35cb4f6ad4ee51d7be39e50.zip
convert relcool to take a config as a opt argument
adds `-c <config-file>` or `--config <config-file>` instead of passing the config file as an argument.
Diffstat (limited to 'test/rclt_command_SUITE.erl')
-rw-r--r--test/rclt_command_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rclt_command_SUITE.erl b/test/rclt_command_SUITE.erl
index 78f05fc..3d06dad 100644
--- a/test/rclt_command_SUITE.erl
+++ b/test/rclt_command_SUITE.erl
@@ -88,6 +88,6 @@ spec_parse_fail_case(_Config) ->
config_fail_case(_Config) ->
ConfigFile = "does-not-exist",
- CmdLine = [ConfigFile],
+ CmdLine = ["-c", ConfigFile],
?assertMatch({error, {_, {invalid_config_file, ConfigFile}}},
rcl_cmd_args:args2state(getopt:parse(relcool:opt_spec_list(), CmdLine))).