Skip to content

Commit 8fe067f

Browse files
committed
Change usage message back to no brackets
1 parent 8fa6fa1 commit 8fe067f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Building
2222
Usage
2323
-----
2424

25-
hostsblock [filterlist]
25+
hostsblock filterlist
2626

2727
If the filterlist argument is `-` or omitted, hostsblock will read from stdin.
2828
For example,

hostsblock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ int main(int argc, char **argv)
115115
char domain[MAX_DOMAIN_LENGTH] = { 0 };
116116

117117
if (argc > 2) {
118-
fprintf(stderr, "usage: %s [filterlist]\n", argv[0]);
118+
fprintf(stderr, "usage: %s filter list\n", argv[0]);
119119
return 1;
120120
}
121121

122122
if (argc < 2 || !strncmp(argv[1], "-", 2)) list = stdin;
123123
else list = fopen(argv[1], "r");
124124

125125
if (list == NULL) {
126-
perror("error opening list file");
126+
perror("error opening filter list");
127127
return 1;
128128
}
129129

@@ -137,7 +137,7 @@ int main(int argc, char **argv)
137137
}
138138

139139
if (ferror(list)) {
140-
perror("error reading list file");
140+
perror("error reading filterlist");
141141
return 1;
142142
}
143143

0 commit comments

Comments
 (0)