wmclockmon: drop `getuid()` error checks
[dockapps.git] / wmget / usage.c
blob59b0d91f69222decc9777c43e6cf98d8778038b3
1 /*
2 wmget - A background download manager as a Window Maker dock app
3 Copyright (c) 2001-2003 Aaron Trickey <aaron@amtrickey.net>
5 Permission is hereby granted, free of charge, to any person
6 obtaining a copy of this software and associated documentation files
7 (the "Software"), to deal in the Software without restriction,
8 including without limitation the rights to use, copy, modify, merge,
9 publish, distribute, sublicense, and/or sell copies of the Software,
10 and to permit persons to whom the Software is furnished to do so,
11 subject to the following conditions:
13 The above copyright notice and this permission notice shall be
14 included in all copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 ********************************************************************
25 usage.c - Displays usage information
27 Provides usage(), which gets invoked whenever the user asks for
28 help, or provides bad options.
31 #include <stdio.h>
33 #include "wmget.h"
36 void usage (void)
38 printf (
39 WMGET_VERSION_BANNER "\n"
40 WMGET_COPYRIGHT "\n"
41 "Usage:\n"
42 " wmget dock [options] # To start up the dockapp\n"
43 " wmget [options] <URL> # To request a download\n"
44 " wmget cancel <job-id> # To cancel a download\n"
45 " wmget list # To show current and pending jobs\n"
46 " wmget --version # (or -v) To print the version\n"
47 " wmget --help # (or -h) To print this text\n"
48 "Options:\n");
50 #define yes " ..."
51 #define no " "
52 #define O(s,l,a,t) \
53 printf (" -%c|--%-15s " t "\n", s, #l a);
54 #include "config.def"
55 #undef O
56 #undef no
57 #undef optional
58 #undef required