]> granicus.if.org Git - icinga2/blobdiff - lib/cli/consolecommand.hpp
Fix error reporting for 'icinga2 console -r'
[icinga2] / lib / cli / consolecommand.hpp
index 331f226a47b33b30f451eeafed14a5cb7cd6c032..4c7a5d3c228e1d8d54f8db0c04690c3c0ab465bd 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * Icinga 2                                                                   *
- * Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/)  *
+ * Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/)  *
  *                                                                            *
  * This program is free software; you can redistribute it and/or              *
  * modify it under the terms of the GNU General Public License                *
@@ -47,7 +47,8 @@ public:
        virtual int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
 
        static int RunScriptConsole(ScriptFrame& scriptFrame, const String& addr = String(),
-           const String& session = String(), const String& commandOnce = String(), bool syntaxOnly = false);
+           const String& session = String(), const String& commandOnce = String(), const String& commandOnceFileName = String(),
+           bool syntaxOnly = false);
 
 private:
        mutable boost::mutex m_Mutex;