From 6fe3b82b5b095740da31274cc37c82628542f5b6 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 28 Nov 2013 22:10:03 +0100 Subject: [PATCH] Make list of commands (for unabbreviation) easier to maintain It's easier to modify the list with each command on a separate line. The shell completion scripts have already been modified that way. --- src/rebar.erl | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/src/rebar.erl b/src/rebar.erl index 1902f14..2d9fe04 100644 --- a/src/rebar.erl +++ b/src/rebar.erl @@ -417,11 +417,32 @@ filter_flags(Config, [Item | Rest], Commands) -> end. command_names() -> - ["check-deps", "clean", "compile", "create", "create-app", "create-node", - "ct", "delete-deps", "doc", "eunit", "escriptize", "generate", - "generate-appups", "generate-upgrade", "get-deps", "help", "list-deps", - "list-templates", "qc", "update-deps", "overlay", "shell", "version", - "xref"]. + [ + "check-deps", + "clean", + "compile", + "create", + "create-app", + "create-node", + "ct", + "delete-deps", + "doc", + "eunit", + "escriptize", + "generate", + "generate-appups", + "generate-upgrade", + "get-deps", + "help", + "list-deps", + "list-templates", + "qc", + "update-deps", + "overlay", + "shell", + "version", + "xref" + ]. unabbreviate_command_names([]) -> [];