mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
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.
This commit is contained in:
parent
190111e21a
commit
77dfd419e9
10 changed files with 49 additions and 56 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue