2 * Copyright 2002-2006, Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
16 main(int argc
, char* argv
[])
18 // "beep" can only take a single optional event name
20 || (argc
== 2 && argv
[1][0] == '-')) {
21 fprintf(stdout
, "usage: beep [ eventname ]\n");
22 fprintf(stdout
, "Event names are found in the "
23 "Sounds preferences panel.\n");
28 // if no event name is specified, play the default "Beep" event
32 return system_beep(argv
[1]);