From 063736f8981c5f71b816f4e8ab2ab54618c3ee8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Tue, 10 May 2022 11:39:33 -0500 Subject: add `-v` flag to the manpage Thanks @Humm42 --- dwl.1 | 7 +++++++ dwl.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dwl.1 b/dwl.1 index eea0f70..f50602c 100644 --- a/dwl.1 +++ b/dwl.1 @@ -6,6 +6,7 @@ .Nd dwm for Wayland .Sh SYNOPSIS .Nm +.Op Fl v .Op Fl s Ar command .Sh DESCRIPTION .Nm @@ -15,6 +16,12 @@ It is intended to fill the same space in the Wayland world that does for X11. .Pp When given the +.Fl v +option, +.Nm +writes its name and version to standard error and exits unsuccessfully. +.Pp +When given the .Fl s option, .Nm diff --git a/dwl.c b/dwl.c index 48eb1a3..3ebe37a 100644 --- a/dwl.c +++ b/dwl.c @@ -2536,5 +2536,5 @@ main(int argc, char *argv[]) return EXIT_SUCCESS; usage: - die("Usage: %s [-s startup command]", argv[0]); + die("Usage: %s [-v] [-s startup command]", argv[0]); } -- cgit v1.2.3