Skip to content

Commit

Permalink
Deprecation -- depricate -> deprecated sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
Phill committed Aug 20, 2014
1 parent d805a38 commit 53a0ca1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions squeezy
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ sub listen
sub command
{
my $command = shift;
if ( $command{$command}->{depricated} ) {
warn "Commmand ",$command," depricated.\n";
if ( $command{$command}->{deprecated} ) {
warn "Commmand ",$command," deprecated.\n";
}
if ( $command{$command}->{json} ) {
$command{$command}->{command}(shift,shift,@_);
Expand Down Expand Up @@ -637,7 +637,7 @@ command =>
'-die_if_playing' =>
{
help => 'if this player is on and playing, then die immediately; exit code 1',
depricated => 1,
deprecated => 1,
command =>
sub { if ( command('-power') && command('-mode') eq 'play' )
{ print "$player is on and playing, exiting immediately\n"; exit(1); } }
Expand Down Expand Up @@ -687,7 +687,7 @@ command =>
'-exit_if_playing' =>
{
help => 'if this player is on and playing, then exit immediately; exit code 0',
depricated => 1,
deprecated => 1,
command =>
sub { if ( command('-power') && command('-mode') eq 'play')
{ print "$player is on and playing, exiting immediately\n"; exit(0); } }
Expand All @@ -696,7 +696,7 @@ command =>
'-exit_if_sleeping' =>
{
help => 'if this player is on and is timing down to sleep, then exit immediately; exit code 0',
depricated => 1,
deprecated => 1,
command =>
sub {
if ( command('-power') && command('-sleeping') )
Expand Down Expand Up @@ -748,7 +748,7 @@ command =>
print "\ncommand-line options:\n";
foreach my $command ( sort keys %command )
{
if ( $command{$command}->{help} and not $command{$command}->{depricated})
if ( $command{$command}->{help} and not $command{$command}->{deprecated})
{
my $argument = $command{$command}->{do_shift} ? ' <arg>' : '';
print sprintf "%-18s: %s\n", "$command$argument", $command{$command}->{help};
Expand Down

0 comments on commit 53a0ca1

Please sign in to comment.