about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xnotyet4
1 files changed, 4 insertions, 0 deletions
diff --git a/notyet b/notyet
index b713434..f74631f 100755
--- a/notyet
+++ b/notyet
@@ -215,6 +215,10 @@ if count_only
   exit
 end
 
+if t.children.empty? && !ARGV.empty?
+  exit 1
+end
+
 if $edit && STDOUT.tty?
   rd, wr = IO.pipe
   $stdout = wr