Skip to content
Snippets Groups Projects
Commit ed5f76a2 authored by Kentaro Wada's avatar Kentaro Wada
Browse files

Delete man file as it is not so helpful: --help is fine

parent 4d4cd203
No related branches found
No related tags found
No related merge requests found
......@@ -53,9 +53,6 @@ jobs:
else
conda install -q -y pyqt=5
fi
if [ "${{ matrix.os }}" != "windows-latest" ]; then
conda install -q -y help2man
fi
pip install pytest 'pytest-qt<4'
- name: Install main
......
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5.
.TH LABELME "1" "November 2021" "labelme 4.6.0" "User Commands"
.SH NAME
labelme \- manual page for labelme 4.6.0
.SH DESCRIPTION
usage: labelme [\-h] [\-\-version] [\-\-reset\-config]
.IP
[\-\-logger\-level {debug,info,warning,fatal,error}]
[\-\-output OUTPUT] [\-\-config CONFIG] [\-\-nodata] [\-\-autosave]
[\-\-nosortlabels] [\-\-flags FLAGS] [\-\-labelflags LABEL_FLAGS]
[\-\-labels LABELS] [\-\-validatelabel {exact}] [\-\-keep\-prev]
[\-\-epsilon EPSILON]
[filename]
.SS "positional arguments:"
.TP
filename
image or label filename
.SS "optional arguments:"
.TP
\fB\-h\fR, \fB\-\-help\fR
show this help message and exit
.TP
\fB\-\-version\fR, \fB\-V\fR
show version
.TP
\fB\-\-reset\-config\fR
reset qt config
.TP
\fB\-\-logger\-level\fR {debug,info,warning,fatal,error}
logger level
.TP
\fB\-\-output\fR OUTPUT, \fB\-O\fR OUTPUT, \fB\-o\fR OUTPUT
output file or directory (if it ends with .json it is
recognized as file, else as directory)
.TP
\fB\-\-config\fR CONFIG
config file or yaml\-format string (default:
/Users/wkentaro/.labelmerc)
.TP
\fB\-\-nodata\fR
stop storing image data to JSON file
.TP
\fB\-\-autosave\fR
auto save
.TP
\fB\-\-nosortlabels\fR
stop sorting labels
.TP
\fB\-\-flags\fR FLAGS
comma separated list of flags OR file containing flags
.TP
\fB\-\-labelflags\fR LABEL_FLAGS
yaml string of label specific flags OR file containing
json string of label specific flags (ex. {person\-\ed+:
[male, tall], dog\-\ed+: [black, brown, white], .*:
[occluded]})
.TP
\fB\-\-labels\fR LABELS
comma separated list of labels OR file containing
labels
.TP
\fB\-\-validatelabel\fR {exact}
label validation types
.TP
\fB\-\-keep\-prev\fR
keep annotation of previous frame
.TP
\fB\-\-epsilon\fR EPSILON
epsilon to find nearest vertex on canvas
.SH "SEE ALSO"
The full documentation for
.B labelme
is maintained as a Texinfo manual. If the
.B info
and
.B labelme
programs are properly installed at your site, the command
.IP
.B info labelme
.PP
should give you access to the complete manual.
......@@ -147,7 +147,6 @@ def main():
"labelme_on_docker=labelme.cli.on_docker:main",
],
},
data_files=[("share/man/man1", ["docs/man/labelme.1"])],
)
......
#!/usr/bin/env python
from __future__ import print_function
import os.path as osp
import re
import shlex
import subprocess
import sys
here = osp.dirname(osp.abspath(__file__))
cmd = "help2man labelme"
man_expected = subprocess.check_output(shlex.split(cmd)).decode().splitlines()
man_file = osp.realpath(osp.join(here, "../../../docs/man/labelme.1"))
with open(man_file) as f:
man_actual = f.read().splitlines()
patterns_exclude = [
r"^\.TH .*",
r"^.*/\.labelmerc\)$",
r"^\.\\.*",
]
PASS = 1
for line_expected, line_actual in zip(man_expected, man_actual):
for pattern in patterns_exclude:
if re.match(pattern, line_expected) or re.match(pattern, line_actual):
break
else:
if line_expected != line_actual:
print(repr("> {}".format(line_expected)), file=sys.stderr)
print(repr("< {}".format(line_actual)), file=sys.stderr)
PASS = 0
if not PASS:
print(
"Please run:\n\n\thelp2man labelme > {}\n".format(man_file),
file=sys.stderr,
)
assert PASS
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment