/* * Copyright (c) 2020-2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include ErrorOr serenity_main(Main::Arguments arguments) { Optional tone; Core::ArgsParser args_parser; args_parser.add_option(tone, "Beep tone", "beep-tone", 'f', "Beep tone (frequency in Hz)"); args_parser.parse(arguments); TRY(Core::System::beep(tone)); return 0; }