]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Add --exiton-re option
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 21 Oct 2014 13:02:35 +0000 (15:02 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 21 Oct 2014 13:02:35 +0000 (15:02 +0200)
README.md
novaboot

index 2b6520c96a4034e8bf6eb8360203c182bf40e00e..6eb34bf5d0a2b47c7375c8203febd76bcdff9b6d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -473,6 +473,10 @@ interactive work with the target.
 
         --exiton -re --exiton 'error:.*failed'
 
+- --exiton-re=_regex_
+
+    The same as --exiton -re --exiton _regex_.
+
 - -i, --interactive
 
     Setup things for interactive use of target. Your terminal will be
index 6370dba14fffa4f6623fd69be6ab6b64d9b0f48c..db7d7906e31ccfea6bedae6ba1d8c2fadde43adf 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -144,6 +144,7 @@ my %opt_spec;
     "dump"          => \$dump_opt,
     "dump-config"    => \$dump_config,
     "exiton=s"       => \@exiton,
+    "exiton-re=s"    => sub { my ($n, $v) = @_; push(@exiton, '-re', $v); },
     "expect=s"      => \&handle_expect,
     "expect-re=s"    => \&handle_expect,
     "expect-raw=s"   => sub { my ($n, $v) = @_; unshift(@expect_raw, eval($v)); },
@@ -1639,6 +1640,10 @@ treated as regular expression. For example:
 
     --exiton -re --exiton 'error:.*failed'
 
+=item --exiton-re=I<regex>
+
+The same as --exiton -re --exiton I<regex>.
+
 =item -i, --interactive
 
 Setup things for interactive use of target. Your terminal will be