summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2013-06-05 11:17:25 +0000
committerCharles Forsyth <charles.forsyth@gmail.com>2013-06-05 11:17:25 +0000
commite2311792c4ec91afbb3b139a03777fd0e0ba13dd (patch)
treeed52d3b52317f6fb930caaf02d6dd946be02107a
parentf72977a2bf4d7231ffd644d61a7b039e395c7839 (diff)
rename rcmd option -e to -x for eXclude and make -e be encryption as with others
-rw-r--r--appl/cmd/rcmd.b6
-rw-r--r--man/1/rcmd8
2 files changed, 7 insertions, 7 deletions
diff --git a/appl/cmd/rcmd.b b/appl/cmd/rcmd.b
index 69061a73..8815f9b7 100644
--- a/appl/cmd/rcmd.b
+++ b/appl/cmd/rcmd.b
@@ -26,14 +26,14 @@ init(nil: ref Draw->Context, argv: list of string)
doauth := 1;
exportpath := "/";
keyfile: string;
- arg->setusage("rcmd [-A] [-f keyfile] [-a alg] [-e exportpath] tcp!mach cmd");
+ arg->setusage("rcmd [-A] [-f keyfile] [-e alg] [-x exportpath] tcp!mach cmd");
while((o := arg->opt()) != 0)
case o {
- 'a' =>
+ 'e' or 'a' =>
alg = arg->earg();
'A' =>
doauth = 0;
- 'e' =>
+ 'x' =>
exportpath = arg->earg();
(n, nil) := sys->stat(exportpath);
if (n == -1 || exportpath == nil)
diff --git a/man/1/rcmd b/man/1/rcmd
index 2368a37a..c0a8702a 100644
--- a/man/1/rcmd
+++ b/man/1/rcmd
@@ -4,10 +4,10 @@ rcmd \- remote command execution
.SH SYNOPSIS
.B rcmd
[
-.B -C
+.B -e
.I cryptoalg
] [
-.B -e
+.B -x
.I exportpath
]
.I host
@@ -44,7 +44,7 @@ if it exists, and otherwise it will use the certificate in
.BI /usr/ username /keyring/default .
.PP
The
-.B -C
+.B -e
option sets the algorithm
.I cryptoalg
to be used following authentication for digesting or encryption.
@@ -57,7 +57,7 @@ The default is
is not used after authentication.
.PP
The
-.B -e
+.B -x
option sets the path to be exported as root from the local machine (defaults to
.B /
if not specified).