Setting the source of a torrent is likely to be one of the main uses of editing torrents, so it's a good place to start.
I'd like this to use a relatively small number of generic flags:
--set NAME VALUE set the given named field to VALUE. NAME should be the name of a field, not a path, so info.source should be set with --set source FOO.
--remove NAME remove the given field, if set
--update NAME add or update a field that has a default, like created by, or creation time
Ideally, the same flags should also be accepted by imdl torrent create and imdl torrent link
imdl torrent edit
info.entropy
.private
flagA great first stab at this would be to add the subcommand, and add the ability to set the source of a torrent, with something like:
Setting the source of a torrent is likely to be one of the main uses of editing torrents, so it's a good place to start.
I'd like this to use a relatively small number of generic flags:
--set NAME VALUE
set the given named field toVALUE
.NAME
should be the name of a field, not a path, soinfo.source
should be set with--set source FOO
.--remove NAME
remove the given field, if set--update NAME
add or update a field that has a default, likecreated by
, orcreation time
Ideally, the same flags should also be accepted by
imdl torrent create
andimdl torrent link