From c93b993001663a7e603cafdfd4ee567e2d6f9998 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 19 Aug 2007 02:02:38 +0000 Subject: [PATCH] improve cli-driven torrent creation. (Danez, #309 & #310 --- cli/transmissioncli.1 | 18 ++++++++++++++++++ cli/transmissioncli.c | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/cli/transmissioncli.1 b/cli/transmissioncli.1 index 3420c1eb3..5cba2d8c7 100644 --- a/cli/transmissioncli.1 +++ b/cli/transmissioncli.1 @@ -39,6 +39,13 @@ .Op Fl f Ar script .Op Fl n .Ar torrent-file +.Nm +.Op Fl v Ar level +.Fl c Ar source-file +.Fl a Ar announce-url +.Op Fl p Ar 1 +.Op Fl m Ar comment +.Ar output-file .Ek .Sh DESCRIPTION The @@ -48,6 +55,17 @@ scripting capabilities. .Pp The options are as follows: .Bl -tag -width Ds +.lt Fl c, Fl -create-from Ar source-file +Create torrent from the specified source file. +.lt Fl a, Fl -announce Ar announce-url +Specifies the Announceurl the new torrent will use. Can only be +used in conjunction with -c or --create-from. +.lt Fl r, Fl -private +Sets the private flag for the new torrent. Can only be used in +conjunction with -c or --create-from. +.lt Fl m, Fl -comment Ar comment-text +This optional parameter adds a comment to the new torrent. Can only +be used in conjunction with -c or --create-from. .It Fl h, Fl -help Prints a short usage summary. .It Fl i, Fl -info diff --git a/cli/transmissioncli.c b/cli/transmissioncli.c index 6b9f165ca..76225ff42 100644 --- a/cli/transmissioncli.c +++ b/cli/transmissioncli.c @@ -157,7 +157,7 @@ int main( int argc, char ** argv ) { int ret; tr_metainfo_builder_t* builder = tr_metaInfoBuilderCreate( h, sourceFile ); - tr_makeMetaInfo( builder, NULL, announce, comment, isPrivate ); + tr_makeMetaInfo( builder, torrentPath, announce, comment, isPrivate ); while( !builder->isDone ) { wait_msecs( 1 ); printf( "." );