Subject: | 'rubric user -n' fails; doesn't see '--pass' option |
Date: | Sun, 18 Nov 2007 11:16:57 -0500 |
To: | bug-Rubric <bug-Rubric [...] rt.cpan.org> |
From: | John SJ Anderson <genehack [...] genehack.org> |
'rubric user -n --email user@example.com --pass password' always
fails, because it looks like the 'password' option doesn't get set
properly. The following patch fixes this:
diff --git a/lib/Rubric/CLI/Command/user.pm b/lib/Rubric/CLI/Command/user.pm
index ad382d7..5fbd50f 100644
--- a/lib/Rubric/CLI/Command/user.pm
+++ b/lib/Rubric/CLI/Command/user.pm
@@ -24,7 +24,7 @@ sub opt_spec {
return (
[ "new-user|n", "add a user (requires --email and --pass)" ],
[ "activate|a", "activate an existing user" ],
- [ "password|pass|p=s", "set user's password" ],
+ [ "pass|p=s", "set user's password" ],
[ "email|e=s", "set user's email address" ],
);
}
john.
--
"Linking without permission is stealing. Period, end of story."
- Mark Cuban, CEO of broadcast.com