diff --git a/include/util.hpp b/include/util.hpp index 3d79be2..ceee9fd 100644 --- a/include/util.hpp +++ b/include/util.hpp @@ -42,21 +42,21 @@ std::vector> sort_by_value(std::map const& in) { typedef std::pair pair_t; // create an empty vector of pairs - std::vector ret; + std::vector ret; - // copy key-value pairs from the map to the vector - std::copy(in.begin(), - in.end(), - std::back_inserter>(ret)); + // copy key-value pairs from the map to the vector + std::copy(in.begin(), + in.end(), + std::back_inserter>(ret)); - // sort the vector by increasing order of its pair's second value - // if second value are equal, order by the pair's first value - std::sort(ret.begin(), ret.end(), - [](const pair_t& l, const pair_t& r) { - if (l.second != r.second) - return l.second > r.second; - return l.first > r.first; - }); + // sort the vector by increasing order of its pair's second value + // if second value are equal, order by the pair's first value + std::sort(ret.begin(), ret.end(), + [](const pair_t& l, const pair_t& r) { + if (l.second != r.second) + return l.second > r.second; + return l.first > r.first; + }); return ret; } diff --git a/src/options.cpp b/src/options.cpp index 296675a..a89c18a 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -27,11 +27,11 @@ ztd::option_set gen_options() ztd::option('e', "exec", false, "Directly execute script"), ztd::option("\r [var/fct processing]"), ztd::option("minimize-var", false, "Minimize variable names"), - ztd::option("minimize-fct", false, "Minimize function names"), - ztd::option("var-exclude", true, "List of matching regex to ignore for variable processing", "list"), - ztd::option("fct-exclude", true, "List of matching regex to ignore for function processing", "list"), + ztd::option("minimize-fct", false, "Minimize function names"), + ztd::option("exclude-var", true, "List of matching regex to ignore for variable processing", "list"), + ztd::option("exclude-fct", true, "List of matching regex to ignore for function processing", "list"), ztd::option("list-var", false, "List all variables invoked in the script"), - ztd::option("list-fct", false, "List all functions invoked in the script"), + ztd::option("list-fct", false, "List all functions invoked in the script"), ztd::option("list-cmd", false, "List all functions invoked in the script"), // ztd::option("unset-var", false, "Add 'unset' to vars"), ztd::option("remove-unused", false, "Remove unused functions")