diff --git a/src/main.cpp b/src/main.cpp index 5516e98..665df43 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -221,6 +221,11 @@ int main(int argc, char* argv[]) if(options["unset-var"]) add_unset_variables( sh, re_var_exclude ); + + if(options['P']) { + std::ofstream(options['P'].argument) << gen_minmap(varmap, "var") << gen_minmap(fctmap, "fct"); + } + #ifdef DEBUG_MODE if(options['J']) { @@ -229,10 +234,6 @@ int main(int argc, char* argv[]) else #endif - if(options['P']) { - std::ofstream(options['P'].argument) << gen_minmap(varmap, "var") << gen_minmap(fctmap, "fct"); - } - if(options['o']) // file output { std::string destfile=options['o'];