Skip to content

Commit

Permalink
Updating authors
Browse files Browse the repository at this point in the history
  • Loading branch information
ironcamel committed Apr 24, 2012
1 parent 1ddc0f6 commit 24a231d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
25 changes: 12 additions & 13 deletions bin/notes
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,18 @@ sub post_process {
say $c->output if $c->output;
}

# TODO: This is broken. notes li will list stuff, then displays help.
#sub invalid {
# my ( $c, $cmd ) = @_;
# $cmd //= $c->cmd;
#
# unless ($c->is_command($cmd)) {
# my @cmds = grep { /^$cmd/ } $c->commands;
# $cmd = $cmds[0] if (@cmds == 1);
# }
#
# $c->execute( $cmd ) and return if $c->is_command( $cmd );
# $c->execute( 'help' ) and return;
#}
sub invalid {
my ( $c, $cmd ) = @_;
$cmd //= $c->cmd;

unless ($c->is_command($cmd)) {
my @cmds = grep { /^$cmd/ } $c->commands;
$cmd = $cmds[0] if (@cmds == 1);
}

$c->execute( $cmd ) and return if $c->is_command( $cmd );
$c->execute( 'help' ) and return;
}

App::Rad->run;

Expand Down
1 change: 1 addition & 0 deletions dist.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name = App-Notes
author = William Wolf <throughnothing@gmail.com>
author = Naveed Massjouni <naveedm9@gmail.com>
license = CC0_1_0
copyright_holder = William Wolf
copyright_year = 2012
Expand Down

0 comments on commit 24a231d

Please sign in to comment.