Skip to content

Commit

Permalink
Small fixes to manpage generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Sep 6, 2015
1 parent af7af71 commit 7c4d358
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build_manpage.py
Expand Up @@ -48,7 +48,7 @@ def _write_header(self):
self._today.strftime('%Y\\-%m\\-%d')))
description = self.distribution.get_description()
if description:
name = self._markup('%s - %s' % (self._markup(appname),
name = self._markup('%s - %s' % (appname,
description.splitlines()[0]))
else:
name = self._markup(appname)
Expand All @@ -59,7 +59,7 @@ def _write_header(self):
ret.append('.SH SYNOPSIS\n.B %s\n%s\n' % (self._markup(appname),
synopsis))
long_desc = self.distribution.get_long_description()
if long_desc:
if long_desc and long_desc != "UNKNOWN":
ret.append('.SH DESCRIPTION\n%s\n' % self._markup(long_desc))
return ''.join(ret)

Expand Down
2 changes: 1 addition & 1 deletion dvsource-v4l2-other.py
Expand Up @@ -23,7 +23,7 @@
# Argument parsing
###############################################################################

parser = argparse.ArgumentParser(add_help=False)
parser = argparse.ArgumentParser(prog='dvsource-v4l2-other', add_help=False)
parser.add_argument(
"-d", "--device", default="/dev/video0",
help="Video4Linux device to read the input from.")
Expand Down

0 comments on commit 7c4d358

Please sign in to comment.