From b1b1973736477bdedc77e5ac038afaad7de52c6b Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 11 May 2006 13:56:58 -0400 Subject: ENH: Some documentation and add APPEND --- Source/cmListCommand.cxx | 2 +- Source/cmListCommand.h | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx index 398c63e..6516f20 100644 --- a/Source/cmListCommand.cxx +++ b/Source/cmListCommand.cxx @@ -38,7 +38,7 @@ bool cmListCommand::InitialPass(std::vector const& args) { return this->HandleGetCommand(args); } - if(subCommand == "SET") + if(subCommand == "SET" || subCommand == "APPEND") { return this->HandleSetCommand(args); } diff --git a/Source/cmListCommand.h b/Source/cmListCommand.h index 99d3314..e510d19 100644 --- a/Source/cmListCommand.h +++ b/Source/cmListCommand.h @@ -67,18 +67,21 @@ public: " LIST(LENGTH )\n" " LIST(GET [ ...] " ")\n" - " LIST(SET [ ...])\n" + " LIST(APPEND [ ...])\n" " LIST(INSERT [ ...])\n" - " LIST(REMOVE [ ...])\n" - " LIST(REMOVE_ITEM [ ...])\n" - " LIST(SORT )\n" - " LIST(REVERSE )\n" + " LIST(REMOVE [ ...])\n" + " LIST(REMOVE_ITEM [ ...])\n" + " LIST(SORT )\n" + " LIST(REVERSE )\n" "LENGTH will return a given list's length.\n" "GET will return list of elements specified by indices from the list.\n" - "SET will append elements to the list.\n" + "APPEND will append elements to the list.\n" "INSERT will insert elements to the list to the specified location.\n" "When specifying an index, negative value corresponds to index from the" " end of the list.\n" + "REMOVE and REMOVE_ITEM will remove item from the list. The difference " + "is that REMOVE will remove the given items, while REMOVE_ITEM will " + "remove the item at the given indices.\n" ; } -- cgit v0.12