Update C sources based on patch

master
Tait Hoyem 2 years ago
parent ff90886354
commit 99457c2725

@ -5,6 +5,9 @@
.Nd simple plaintext presentation tool
.Sh SYNOPSIS
.Nm
.Op Fl f Ar font
.Op Fl c Ar fgcolor
.Op Fl b Ar bgcolor
.Op Fl v
.Op Ar file
.Sh DESCRIPTION
@ -21,6 +24,14 @@ few minutes.
.Bl -tag -width Ds
.It Fl v
Print version information to stdout and exit.
.It Fl f Ar font
Defines the
.Ar font
when sent is run.
.It Fl c Ar fgcolor
Defines the foreground color when sent is run.
.It Fl b Ar bgcolor
Defines the background color when sent is run.
.El
.Sh USAGE
.Bl -tag -width Ds

@ -679,7 +679,7 @@ configure(XEvent *e)
void
usage()
{
die("usage: %s [file]", argv0);
die("usage: %s [-c fgcolor] [-b bgcolor] [-f font] [file]", argv0);
}
int
@ -691,6 +691,15 @@ main(int argc, char *argv[])
case 'v':
fprintf(stderr, "sent-"VERSION"\n");
return 0;
case 'f':
fontfallbacks[0] = EARGF(usage());
break;
case 'c':
colors[0] = EARGF(usage());
break;
case 'b':
colors[1] = EARGF(usage());
break;
default:
usage();
} ARGEND

Loading…
Cancel
Save