summary refs log tree commit diff stats
path: root/draco.1
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-11-24 13:48:59 +0530
committerAndinus <andinus@nand.sh>2020-11-24 13:48:59 +0530
commit514a17069dbb06ffd272a2d57935fa8e8681969e (patch)
tree959bb2b76bbd45235f5b1c77cda48c07228278a0 /draco.1
parentfd9bde6f64c8d792c555678dc1dee8ae3665156e (diff)
downloaddraco-514a17069dbb06ffd272a2d57935fa8e8681969e.tar.gz
Update instructions in README, add comments in draco.pl, fix bug v0.2.1
$comment in print_comment_chain() was changed to $comment_data to
prevent confusion in future.

We have to check if url has "/" at the end because if it does have it
then previously we were appending "$comment_data->{id}.json" to it
which makes the url look like:

      http://<reddit>/<post_id>//<comment_id>.json

And reddit doesn't like that, reddit wants it to be:

      http://<reddit>/<post_id>/<comment_id>.json

Notice the double '/' in previous link.
Diffstat (limited to 'draco.1')
-rw-r--r--draco.12
1 files changed, 1 insertions, 1 deletions
diff --git a/draco.1 b/draco.1
index a9d2856..0363e07 100644
--- a/draco.1
+++ b/draco.1
@@ -6,7 +6,7 @@
 .Nd a script to convert reddit thread to Org document
 .Sh SYNOPSIS
 .Nm draco
-.Op Fl dv
+.Op Fl dhv
 .Ar <url>
 .Sh DESCRIPTION
 .Nm