Skip to content

Commit

Permalink
Adding a move option to the importer's CLI and updating the docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
karpinski committed Feb 6, 2017
1 parent cb7c6bf commit 06f3169
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions beets/ui/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,10 @@ def import_func(lib, opts, args):
u'-C', u'--nocopy', action='store_false', dest='copy',
help=u"don't copy tracks (opposite of -c)"
)
import_cmd.parser.add_option(
u'-m', u'--move', action='store_true', dest='move',
help=u"move tracks into the library (overrides -c)"
)
import_cmd.parser.add_option(
u'-w', u'--write', action='store_true', default=None,
help=u"write new metadata to files' tags (default)"
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ New features:
value. The argument can be any two characters that represent the left and
right brackets. It defaults to `[]` and can also be blank to turn off
bracketing. :bug:`2397` :bug:`2399`
* Added a ``--move`` or ``-m`` option to the importer so that the files can be
moved to the library instead of being copied or added "in place".

Fixes:

Expand Down
3 changes: 3 additions & 0 deletions docs/guides/tagger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ command-line options you should know:
* ``beet import -C``: don't copy imported files to your music directory; leave
them where they are

* ``beet import -m``: move imported files to your music directory (overrides
the ``-c`` option)

* ``beet import -l LOGFILE``: write a message to ``LOGFILE`` every time you skip
an album or choose to take its tags "as-is" (see below) or the album is
skipped as a duplicate; this lets you come back later and reexamine albums
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ box. To extract `rar` files, install the `rarfile`_ package and the
Optional command flags:

* By default, the command copies files your the library directory and
updates the ID3 tags on your music. If you'd like to leave your music
updates the ID3 tags on your music. In order to move the files, instead of
copying, use the ``-m`` (move) option. If you'd like to leave your music
files untouched, try the ``-C`` (don't copy) and ``-W`` (don't write tags)
options. You can also disable this behavior by default in the
configuration file (below).
Expand Down

0 comments on commit 06f3169

Please sign in to comment.