Opened 7 years ago

Last modified 5 years ago

#5410 new Enhancement

Add file renaming to transmission-remote (daemon)

Reported by: kwartel Owned by:
Priority: Normal Milestone: None Set
Component: CLI Version: 2.80
Severity: Normal Keywords: rename, remote, daemon, patch-needed
Cc:

Description

It's currently missing in the options of transmission-remote. I can imagine it having a syntax like this:

-rn <files> <filename>

Where <files> works like in -g/-G.

Change History (5)

comment:1 Changed 7 years ago by taem

Hi,

To implement this feature, the tr_getopt() needs rewrite to return one or more option arguments. Currently it returns only the first argument.

comment:2 Changed 7 years ago by taem

  • Component changed from Daemon to CLI

comment:3 Changed 7 years ago by taem

I have two options:

  1. Use some printable (not whitespace) separator between files and filename. AFAIK an Unix filenames can contain any character except '/' and '\0', therefore separator should be escaped somehow. Or separator can be two characters.
  2. tr_option.has_arg should indicate how many arguments an option expect. tr_getopt() should return optarg as array of strings.
Last edited 7 years ago by taem (previous) (diff)

comment:4 Changed 7 years ago by jordan

  • Keywords patch-needed added

comment:5 Changed 5 years ago by rsully

I would love to see this implemented. I think taem's second option is probably the best bet.

Note: See TracTickets for help on using tickets.