[Bps-public-commit] r15966 - in sd/trunk: .
spang at bestpractical.com
spang at bestpractical.com
Sat Sep 13 18:08:04 EDT 2008
Author: spang
Date: Sat Sep 13 18:08:04 2008
New Revision: 15966
Modified:
sd/trunk/ (props changed)
sd/trunk/lib/App/SD/CLI/Dispatcher.pm
Log:
r49796 at loki: spang | 2008-09-13 18:07:39 -0400
add some comments on what I could discern some sd Path::Dispatcher rules do
Modified: sd/trunk/lib/App/SD/CLI/Dispatcher.pm
==============================================================================
--- sd/trunk/lib/App/SD/CLI/Dispatcher.pm (original)
+++ sd/trunk/lib/App/SD/CLI/Dispatcher.pm Sat Sep 13 18:08:04 2008
@@ -6,8 +6,12 @@
on qr'^\?(.*)$' => sub {my $cmd = $1 || ''; run ('help'. $cmd, @_); last_rule;};
-on qr'^(about|copying)$' => sub { run('help '.$1, @_); last_rule;};
+# 'sd about' -> 'sd help about', 'sd copying' -> 'sd help copying'
+on qr'^(about|copying)$' => sub { run('help '.$1, @_); last_rule;};
+
+# allow type to be specified via primary commands, e.g.
+# 'sd ticket display --id 14' -> 'sd display --type ticket --id 14'
on qr{^(ticket|comment|attachment) \s+ (.*)}xi => sub {
my %args = @_;
$args{context}->set_arg(type => $1);
More information about the Bps-public-commit
mailing list