From: Maxim Mamontov Date: Sun, 12 Jan 2014 16:44:36 +0000 (+0200) Subject: Added raw XML cli options. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/e9d45351deaf9ce85a9f1ee116f1f62988322e84 Added raw XML cli options. --- diff --git a/projects/sgconf/main.cpp b/projects/sgconf/main.cpp index a0ef89a1..3280e336 100644 --- a/projects/sgconf/main.cpp +++ b/projects/sgconf/main.cpp @@ -1239,6 +1239,14 @@ SGCONF::OPTION_BLOCK & block = blocks.Add("Connection options") .Add("u", "username", SGCONF::MakeParamAction(config.userName, std::string("admin"), ""), "\tadministrative login") .Add("w", "userpass", SGCONF::MakeParamAction(config.userPass, ""), "\tpassword for the administrative login") .Add("a", "address", SGCONF::MakeParamAction(config, ""), "connection params as a single string in format: :@:"); +blocks.Add("Raw XML") + .Add("r", "raw", SGCONF::MakeConfAction(), "\t\tmake raw XML request") +/*blocks.Add("Admins management options") + .Add("get-admins", SGCONF::MakeConfAction()) + .Add("get-admin", SGCONF::MakeConfAction()) + .Add("add-admin", SGCONF::MakeConfAction()) + .Add("del-admin", SGCONF::MakeConfAction()) + .Add("chg-admin", SGCONF::MakeConfAction());*/ SGCONF::PARSER_STATE state(false, argc, argv);