summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <arch@njw.me.uk>2008-04-03 02:23:23 +0000
committerNick White <arch@njw.me.uk>2008-04-03 02:23:23 +0000
commiteff8ea6b94848e84cbca714c65542d4c977d1df4 (patch)
treea114cb3094c20ea3487ccb51f0d4ad942330ece4
parent4156c47a7d1fe3e16935180fb00c138229436ef1 (diff)
Removed alternate tocfile option
Removed option to specify a different tocfile; not likely to ever be used. Also reformatted usage message a little. git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-38
-rw-r--r--src/cli.c3
-rw-r--r--src/getht.c4
2 files changed, 1 insertions, 6 deletions
diff --git a/src/cli.c b/src/cli.c
index efce2bb..52f0f36 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -61,11 +61,10 @@ void showusage()
{
printf("Usage: getht [-ualmofhv] [-d issno] [-n medno] [-t tocfile]\n");
printf("-u | --update Update contents files\n");
+ printf("-l | --list-issues List available issues\n");
printf("-a | --download-all Download all issues\n");
printf("-d | --download-issue issno Download issue number issno\n");
printf("-f | --force Force re-download of existing files\n");
- printf("-l | --list-issues List available issues\n");
- printf("-t | --tocfile file Use alternative contents xml file\n");
printf("-h | --help Print this help message\n");
printf("-v | --verbose Make output more verbose\n");
printf("-V | --version Print version information\n");
diff --git a/src/getht.c b/src/getht.c
index 051fb6f..aa71adf 100644
--- a/src/getht.c
+++ b/src/getht.c
@@ -96,7 +96,6 @@ int main(int argc, char *argv[])
{"force", no_argument, 0, 'f'},
{"list-issues", no_argument, 0, 'l'},
{"update", no_argument, 0, 'u'},
- {"tocfile", required_argument, 0, 't'},
{"help", no_argument, 0, 'h'},
{"verbose", no_argument, 0, 'v'},
{"version", no_argument, 0, 'V'},
@@ -126,9 +125,6 @@ int main(int argc, char *argv[])
update = 1;
option = 1;
break;
- case 't':
- strncpy(issue_xml, strdup(optarg), STR_MAX);
- break;
case 'h':
showusage();
return 0;