juju scp reports -r as an invalid option

Bug #1318711 reported by Brad Crittenden
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
juju-core
Triaged
High
Unassigned

Bug Description

The help for 1.19.2 'juju scp' shows an example using the '-r' option as seen here:

% juju help scp
usage: juju scp [options] <file1> ... <file2> [scp-option...]
purpose: launch a scp command to copy files to/from remote machine(s)

[...]

Recursively copy the directory /var/log/mongodb/ on the first mongodb
server to the local directory remote-logs:

    juju scp -r mongodb/0:/var/log/mongodb/ remote-logs/

However when trying to do a recursive copy I get an error.

juju scp -r ~/charms/precise charmworld/0:/tmp
error: flag provided but not defined: -r

The help text should not describe options that are not supported. So the help needs to be fixed or the -r should work. The latter would sure be the nicer of the two outcomes.

Tags: ssh
Brad Crittenden (bac)
summary: - juju scp report -r as an invalid option
+ juju scp reports -r as an invalid option
Curtis Hovey (sinzui)
tags: added: ssh
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → next-stable
description: updated
Revision history for this message
Brad Crittenden (bac) wrote :

% juju --version
1.19.2-trusty-amd64

description: updated
description: updated
Revision history for this message
Brad Crittenden (bac) wrote :

As a work-around, this spelling is rumored to work:

juju scp -- -r $source $target

Revision history for this message
Felipe Reyes (freyes) wrote :

This bug is duplicate of https://bugs.launchpad.net/juju-core/+bug/1214642

The workaround @bac mentions actually works.

Revision history for this message
Mario Splivalo (mariosplivalo) wrote :

I tested the devel (alpha) version (1.21-alpha1-trusty-amd64, from devel ppa), and the bug is still there.

However, some time ago I built, from sources (1.20.9-qiana-amd64 - was trying to make juju work on Mint), and the bug is not present there (in a manner that the help message is fixed)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.