aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/um/service/utils/uninstall_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'um/service/utils/uninstall_service.cpp')
-rw-r--r--um/service/utils/uninstall_service.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/um/service/utils/uninstall_service.cpp b/um/service/utils/uninstall_service.cpp
index aa5af85..d7c105c 100644
--- a/um/service/utils/uninstall_service.cpp
+++ b/um/service/utils/uninstall_service.cpp
@@ -8,20 +8,15 @@
#include <exception>
#include <iostream>
-int main(int argc, char* argv[])
-{
- if (argc != 2)
- {
+int main(int argc, char* argv[]) {
+ if (argc != 2) {
std::cout << "Usage: " << argv[0] << " NAME\n";
return 1;
}
- try
- {
+ try {
service::Service::open(service::ServiceManager::open(), argv[1]).uninstall();
- }
- catch (const std::exception& e)
- {
+ } catch (const std::exception& e) {
std::cerr << e.what() << "\n";
return 1;
}