Fix docs for :download-* commands
This commit is contained in:
parent
25ee48d28b
commit
35731feeb5
@ -180,14 +180,14 @@ Remove all finished downloads from the list.
|
|||||||
Delete the last/[count]th download from disk.
|
Delete the last/[count]th download from disk.
|
||||||
|
|
||||||
==== count
|
==== count
|
||||||
The index of the download to cancel.
|
The index of the download to delete.
|
||||||
|
|
||||||
[[download-open]]
|
[[download-open]]
|
||||||
=== download-open
|
=== download-open
|
||||||
Open the last/[count]th download.
|
Open the last/[count]th download.
|
||||||
|
|
||||||
==== count
|
==== count
|
||||||
The index of the download to cancel.
|
The index of the download to open.
|
||||||
|
|
||||||
[[download-remove]]
|
[[download-remove]]
|
||||||
=== download-remove
|
=== download-remove
|
||||||
@ -199,14 +199,14 @@ Remove the last/[count]th download from the list.
|
|||||||
* +*-a*+, +*--all*+: Deprecated argument for removing all finished downloads.
|
* +*-a*+, +*--all*+: Deprecated argument for removing all finished downloads.
|
||||||
|
|
||||||
==== count
|
==== count
|
||||||
The index of the download to cancel.
|
The index of the download to remove.
|
||||||
|
|
||||||
[[download-retry]]
|
[[download-retry]]
|
||||||
=== download-retry
|
=== download-retry
|
||||||
Retry the first failed/[count]th download.
|
Retry the first failed/[count]th download.
|
||||||
|
|
||||||
==== count
|
==== count
|
||||||
The index of the download to cancel.
|
The index of the download to retry.
|
||||||
|
|
||||||
[[fake-key]]
|
[[fake-key]]
|
||||||
=== fake-key
|
=== fake-key
|
||||||
|
@ -979,7 +979,7 @@ class DownloadManager(QAbstractListModel):
|
|||||||
"""Delete the last/[count]th download from disk.
|
"""Delete the last/[count]th download from disk.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
count: The index of the download to cancel.
|
count: The index of the download to delete.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
download = self.downloads[count - 1]
|
download = self.downloads[count - 1]
|
||||||
@ -998,7 +998,7 @@ class DownloadManager(QAbstractListModel):
|
|||||||
"""Open the last/[count]th download.
|
"""Open the last/[count]th download.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
count: The index of the download to cancel.
|
count: The index of the download to open.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
download = self.downloads[count - 1]
|
download = self.downloads[count - 1]
|
||||||
@ -1016,7 +1016,7 @@ class DownloadManager(QAbstractListModel):
|
|||||||
"""Retry the first failed/[count]th download.
|
"""Retry the first failed/[count]th download.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
count: The index of the download to cancel.
|
count: The index of the download to retry.
|
||||||
"""
|
"""
|
||||||
if count:
|
if count:
|
||||||
try:
|
try:
|
||||||
@ -1103,7 +1103,7 @@ class DownloadManager(QAbstractListModel):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
all_: Deprecated argument for removing all finished downloads.
|
all_: Deprecated argument for removing all finished downloads.
|
||||||
count: The index of the download to cancel.
|
count: The index of the download to remove.
|
||||||
"""
|
"""
|
||||||
if all_:
|
if all_:
|
||||||
message.warning(self._win_id, ":download-remove --all is "
|
message.warning(self._win_id, ":download-remove --all is "
|
||||||
|
Loading…
Reference in New Issue
Block a user