The getopt helper strings for PVR-related options are sometimes inconsistent and do not document the many synonyms for each option. This patch ensure all --pvr* options have a separating hyphen (--pvr-*), lists the available synonyms for man page generation, and fixes some spelling mistakes.
---
get_iplayer | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/get_iplayer b/get_iplayer
index 27a0d87..8c2ded9 100755
--- a/get_iplayer
+++ b/get_iplayer
@@ -8936,16 +8936,16 @@ my $opt_cmdline;
# Class cmdline Options
sub opt_format {
return {
- pvr => [ 0, "pvr|pvrrun|pvr-run!", 'PVR', '--pvr
[pvr search name]', "Runs the PVR using all saved PVR searches (intended to be
run every hour from cron etc). The list can be limited by adding a regex to the
command."],
- pvrexclude => [ 0, "pvrexclude|pvr-exclude=s", 'PVR',
'--pvr-exclude <string>', "Exclude the PVR searches to run by seacrh name
(regex or comma separated values)"],
- pvrsingle => [ 0, "pvrsingle|pvr-single=s", 'PVR',
'--pvr-single <search name>', "Runs a named PVR search"],
- pvradd => [ 0, "pvradd|pvr-add=s", 'PVR', '--pvradd
<search name>', "Save the named PVR search with the specified search terms"],
- pvrdel => [ 0, "pvrdel|pvr-del=s", 'PVR', '--pvrdel
<search name>', "Remove the named search from the PVR searches"],
- pvrdisable => [ 1, "pvrdisable|pvr-disable=s", 'PVR',
'--pvr-disable <search name>', "Disable (not delete) a named PVR search"],
- pvrenable => [ 1, "pvrenable|pvr-enable=s", 'PVR',
'--pvr-enable <search name>', "Enable a previously disabled named PVR search"],
- pvrlist => [ 0, "pvrlist|pvr-list!", 'PVR',
'--pvrlist', "Show the PVR search list"],
- pvrqueue => [ 0, "pvrqueue|pvr-queue!", 'PVR',
'--pvrqueue', "Add currently matched programmes to queue for later one-off
recording using the --pvr option"],
- pvrscheduler => [ 0, "pvrscheduler|pvr-scheduler=n", 'PVR',
'--pvrscheduler <seconds>', "Runs the PVR using all saved PVR searches every
<seconds>"],
+ pvr => [ 0, "pvr|pvrrun|pvr-run!", 'PVR', '--pvr
[pvr search name]', "Runs the PVR using all saved PVR searches (intended to be
run every hour from cron etc). The list can be limited by adding a regex to the
command. Synonyms: --pvrrun, --pvr-run"],
+ pvrexclude => [ 0, "pvrexclude|pvr-exclude=s", 'PVR',
'--pvr-exclude <string>', "Exclude the PVR searches to run by search name
(regex or comma separated values). Synonyms: --pvrexclude"],
+ pvrsingle => [ 0, "pvrsingle|pvr-single=s", 'PVR',
'--pvr-single <search name>', "Runs a named PVR search. Synonyms: --pvrsingle"],
+ pvradd => [ 0, "pvradd|pvr-add=s", 'PVR', '--pvr-add
<search name>', "Save the named PVR search with the specified search terms.
Synonyms: --pvradd"],
+ pvrdel => [ 0, "pvrdel|pvr-del=s", 'PVR', '--pvr-del
<search name>', "Remove the named search from the PVR searches. Synonyms:
--pvrdel"],
+ pvrdisable => [ 1, "pvrdisable|pvr-disable=s", 'PVR',
'--pvr-disable <search name>', "Disable (not delete) a named PVR search.
Synonyms: --pvrdisable"],
+ pvrenable => [ 1, "pvrenable|pvr-enable=s", 'PVR',
'--pvr-enable <search name>', "Enable a previously disabled named PVR search.
Synonyms: --pvrenable"],
+ pvrlist => [ 0, "pvrlist|pvr-list!", 'PVR',
'--pvr-list', "Show the PVR search list. Synonyms: --pvrlist"],
+ pvrqueue => [ 0, "pvrqueue|pvr-queue!", 'PVR',
'--pvr-queue', "Add currently matched programmes to queue for later one-off
recording using the --pvr option. Synonyms: --pvrqueue"],
+ pvrscheduler => [ 0, "pvrscheduler|pvr-scheduler=n", 'PVR',
'--pvr-scheduler <seconds>', "Runs the PVR using all saved PVR searches every
<seconds>". Synonyms: --pvrscheduler],
comment => [ 1, "comment=s", 'PVR', '--comment
<string>', "Adds a comment to a PVR search"],
};
}
--
1.7.5.4
--
Jonathan Wiltshire [email protected]
Debian Developer http://people.debian.org/~jmw
4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51
signature.asc
Description: Digital signature
_______________________________________________ get_iplayer mailing list [email protected] http://lists.infradead.org/mailman/listinfo/get_iplayer

