Skip to content

Commit

Permalink
Fix command line handling in cp.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 21, 2023
1 parent 8431be4 commit 9659dd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v2.0.1
======

Fixed argument reference in ``cp``.

v2.0.0
======

Expand Down
4 changes: 2 additions & 2 deletions cmdix/command/cp.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def func(args):
else:
_copy = shutil.copy

dstbase = args.pop()
(dest,) = args.DIRECTORY
for src in args.SOURCE:
handle(_copy, args, dstbase, src)
handle(_copy, args, dest, src)


def handle(_copy, args, dstbase, src):
Expand Down

0 comments on commit 9659dd0

Please sign in to comment.