/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include ErrorOr serenity_main(Main::Arguments arguments) { DeprecatedString path = {}; Core::ArgsParser args_parser; args_parser.add_positional_argument(path, "Path", "path"); args_parser.parse(arguments); outln("{}", LexicalPath::dirname(path)); return 0; }