Fixing the help messages and man page for 0.6.3.
authorviric@mandarina
Wed, 18 Feb 2009 23:23:53 +0100
changeset 266 e35af91aa426
parent 265 8c16cd53f772
child 267 11631dd11ff8
Fixing the help messages and man page for 0.6.3.
main.c
ts.1
--- a/main.c	Wed Feb 18 23:18:43 2009 +0100
+++ b/main.c	Wed Feb 18 23:23:53 2009 +0100
@@ -26,7 +26,7 @@
 static char *old_getopt_env;
 
 static char version[] = "Task Spooler v0.6.3 - a task queue system for the unix user.\n"
-"Copyright (C) 2007-2008  Lluis Batlle i Rossell";
+"Copyright (C) 2007-2009  Lluis Batlle i Rossell";
 
 
 static void default_command_line()
@@ -312,7 +312,7 @@
 
 static void print_help(const char *cmd)
 {
-    printf("usage: %s [action] [-ngfmd] [-L <lab>] [cmd...]\n", cmd);
+    printf("usage: %s [action] [-ngfmd] [-L <lab>] [-D <id>] [cmd...]\n", cmd);
     printf("Env vars:\n");
     printf("  TS_SOCKET  the path to the unix socket used by the ts command.\n");
     printf("  TS_MAILTO  where to mail the result (on -m). Local user by default.\n");
--- a/ts.1	Wed Feb 18 23:18:43 2009 +0100
+++ b/ts.1	Wed Feb 18 23:23:53 2009 +0100
@@ -5,7 +5,7 @@
 .\" that should have been distributed together with this file.
 .\" 
 .\" Note: I took the gnu 'ls' man page as an example.
-.TH TS 1 2008-12 "Task Spooler 0.6.2"
+.TH TS 1 2009-02 "Task Spooler 0.6.3"
 .SH NAME
 ts \- task spooler. A simple unix batch system
 .SH SYNOPSIS
@@ -28,6 +28,7 @@
 Options:
 .BI "[\-nfgmd]"
 .BI "[\-L <"label >]
+.BI "[\-D <"id >]
 
 .SH DESCRIPTION
 .B ts
@@ -81,6 +82,13 @@
 Run the command only if the command before finished well (errorlevel = 0). This new
 task enqueued depends on the result of the previous command. If the task is not run,
 it is considered as failed for further dependencies.
+.TP
+.B "\-D <id>"
+Run the command only if the job of given id finished well (errorlevel = 0). This new
+task enqueued depends on the result of the previous command. If the task is not run,
+it is considered as failed for further dependencies.
+If the server doesn't have the job id in its list, it will be considered
+as if the job failed.
 .SH ACTIONS
 Instead of giving a new command, we can use the parameters for other purposes:
 .TP
@@ -275,7 +283,7 @@
 .SH NOTES
 This page describes
 .B ts
-as in version 0.6.2. Other versions may differ. The file
+as in version 0.6.3. Other versions may differ. The file
 .B TRICKS
 found in the distribution package can show some ideas on special uses of
 .B ts.