contrib/cussh.pl: Add the `identifier' option to the `flush' command.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 13 May 2008 14:50:49 +0000 (16:50 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 13 May 2008 14:50:49 +0000 (16:50 +0200)
contrib/cussh.pl

index 6da2856..48f5e93 100755 (executable)
@@ -223,6 +223,15 @@ sub flush {
                        elsif ($option eq "timeout") {
                                $args{"timeout"} = $value;
                        }
+                       elsif ($option eq "identifier") {
+                               my $id = getid (\$value);
+                               if (!$id)
+                               {
+                                       print STDERR "Not a valid identifier: \"$value\"\n";
+                                       next;
+                               }
+                               push @{$args{"identifier"}}, $id;
+                       }
                        else {
                                print STDERR "Invalid option \"$option\".\n";
                                return;