diff options
Diffstat (limited to 'control/main.cpp')
-rw-r--r-- | control/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/control/main.cpp b/control/main.cpp index 4420488..10492b8 100644 --- a/control/main.cpp +++ b/control/main.cpp @@ -1,5 +1,6 @@ /** * Copyright © 2017 IBM Corporation + * Copyright © 2017-2018 Raptor Engineering, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,6 +46,10 @@ int main(int argc, char* argv[]) { mode = Mode::control; } + else if (args["shutdown"] == "true") + { + mode = Mode::shutdown; + } else { args.usage(argv); @@ -65,6 +70,11 @@ int main(int argc, char* argv[]) manager.doInit(); return 0; } + else if (mode == Mode::shutdown) + { + manager.doShutdown(); + return 0; + } return event.loop(); } |