summaryrefslogtreecommitdiff
path: root/Userland/pape.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-05-17 15:35:30 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-17 15:49:37 +0200
commit77dfd419e9b0890e3e7c92c1c62e2776fca83035 (patch)
tree3d6652e8bedee6eb679314119b1c132178391d84 /Userland/pape.cpp
parent190111e21a08cbfd2a981bb7cb96747af1091d5c (diff)
downloadserenity-77dfd419e9b0890e3e7c92c1c62e2776fca83035.zip
LibCore: Move AK/ArgsParser to LibCore/CArgsParser
Also rename the classes to match LibCore naming style. This means that it's no longer incorrectly linked into LibC and Kernel.
Diffstat (limited to 'Userland/pape.cpp')
-rw-r--r--Userland/pape.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/pape.cpp b/Userland/pape.cpp
index 395007d6f5..910673d051 100644
--- a/Userland/pape.cpp
+++ b/Userland/pape.cpp
@@ -6,10 +6,10 @@
#include <fcntl.h>
#include <dirent.h>
#include <AK/AKString.h>
-#include <AK/ArgsParser.h>
#include <AK/StringBuilder.h>
#include <AK/Vector.h>
#include <AK/FileSystemPath.h>
+#include <LibCore/CArgsParser.h>
#include <LibGUI/GDesktop.h>
#include <LibGUI/GApplication.h>
@@ -52,13 +52,13 @@ int main(int argc, char** argv)
{
GApplication app(argc, argv);
- AK::ArgsParser args_parser("pape");
+ CArgsParser args_parser("pape");
args_parser.add_arg("a", "show all wallpapers");
args_parser.add_arg("c", "show current wallpaper");
args_parser.add_single_value("name");
- AK::ArgsParserResult args = args_parser.parse(argc, (const char**)argv);
+ CArgsParserResult args = args_parser.parse(argc, (const char**)argv);
if (args.is_present("a"))
return handle_show_all();