From eff8ea6b94848e84cbca714c65542d4c977d1df4 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 3 Apr 2008 02:23:23 +0000 Subject: 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 --- src/cli.c | 3 +-- src/getht.c | 4 ---- 2 files changed, 1 insertion(+), 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; -- cgit v1.2.3