aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-10-13 11:13:31 -0700
committerCody Logan <cody@lokken.dev>2023-10-13 11:13:31 -0700
commit87052196874cc1bf82f70a6f5aa8e6df59bc1537 (patch)
tree1f73908b40f525dafcf503d1f00b838e8c417300 /docs
parent226b7cb84070c6d073e153ad410fca7798c8e334 (diff)
downloadwikiget-87052196874cc1bf82f70a6f5aa8e6df59bc1537.tar.gz
wikiget-87052196874cc1bf82f70a6f5aa8e6df59bc1537.zip
Revise batch file parsing to ignore blank and commented lines
Previously, blank lines would cause an error and lines prepended with "#" would be downloaded like any other, assuming they were valid. Now, "#" can be used to mark ignored files or comments.
Diffstat (limited to 'docs')
-rw-r--r--docs/wikiget.11
-rw-r--r--docs/wikiget.1.md4
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/wikiget.1 b/docs/wikiget.1
index 03a0c41..fa1a33d 100644
--- a/docs/wikiget.1
+++ b/docs/wikiget.1
@@ -39,6 +39,7 @@ fetched from the site in the URL, in this case
In batch download mode (activated with -\f[B]a\f[R] or
--\f[B]batch\f[R]), this is a text file containing multiple file names
or URLs to be downloaded, one per line.
+Blank lines and lines starting with \[lq]#\[rq] are ignored.
If an error is encountered during download, execution stops immediately
and the offending filename is printed.
.TP
diff --git a/docs/wikiget.1.md b/docs/wikiget.1.md
index 45184f4..fd274d5 100644
--- a/docs/wikiget.1.md
+++ b/docs/wikiget.1.md
@@ -30,8 +30,8 @@ the file name or the URL of its description page.
*BATCHFILE*
: In batch download mode (activated with \-**a** or \-\-**batch**), this is a text file containing multiple file names
- or URLs to be downloaded, one per line. If an error is encountered during download, execution stops immediately and
- the offending filename is printed.
+ or URLs to be downloaded, one per line. Blank lines and lines starting with "#" are ignored. If an error is
+ encountered during download, execution stops immediately and the offending filename is printed.
\-**s**, \-\-**site** *SITE*