aboutsummaryrefslogtreecommitdiffstats
path: root/src/vu-write-head.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vu-write-head.c')
-rw-r--r--src/vu-write-head.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/vu-write-head.c b/src/vu-write-head.c
index 55170c0..9e7c4a3 100644
--- a/src/vu-write-head.c
+++ b/src/vu-write-head.c
@@ -1,29 +1,16 @@
/* See LICENSE file for copyright and license details. */
-#include "arg.h"
#include "util.h"
-static void
-usage(void)
-{
- eprintf("usage: %s parameters ...\n", argv0);
-}
+USAGE("parameters ...")
int
main(int argc, char *argv[])
{
- int i;
-
- ARGBEGIN {
- default:
- usage();
- } ARGEND;
-
- if (!argc)
- usage();
+ ENOFLAGS(!argc);
- printf("%s", argv[0]);
- for (i = 0; i < argc; i++)
- printf(" %s", argv[i]);
+ printf("%s", *argv++);
+ while (*argv)
+ printf(" %s", *argv++);
printf("\n%cuivf", 0);
efshut(stdout, "<stdout>");