Opened 10 years ago
Last modified 8 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 9 years ago by taem
comment:2 Changed 9 years ago by taem
- Component changed from Daemon to CLI
comment:3 Changed 9 years ago by taem
I have two options:
- 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.
- tr_option.has_arg should indicate how many arguments an option expect. tr_getopt() should return optarg as array of strings.
comment:4 Changed 9 years ago by jordan
- Keywords patch-needed added
comment:5 Changed 8 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.
Hi,
To implement this feature, the tr_getopt() needs rewrite to return one or more option arguments. Currently it returns only the first argument.