Check-in [b346a7cf7d]
Not logged in
Overview

SHA1 Hash:b346a7cf7d6d8cd35877f7fbc3c8bad7911faabe
Date: 2007-11-23 12:55:58
User: drh
Comment:Fix a redundancy in the text output of the usage comment on the tag command.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/tag.c from [bdc0f633b7] to [d36aa255e1].

@@ -338,36 +338,36 @@
   }
 
   if( strncmp(g.argv[2],"add",n)==0 ){
     char *zValue;
     if( g.argc!=5 && g.argc!=6 ){
-      usage("tag add TAGNAME UUID ?VALUE?");
+      usage("add TAGNAME UUID ?VALUE?");
     }
     zValue = g.argc==6 ? g.argv[5] : 0;
     tag_add_artifact(g.argv[3], g.argv[4], zValue, 1);
   }else
 
   if( strncmp(g.argv[2],"branch",n)==0 ){
     char *zValue;
     if( g.argc!=5 && g.argc!=6 ){
-      usage("tag branch TAGNAME UUID ?VALUE?");
+      usage("branch TAGNAME UUID ?VALUE?");
     }
     zValue = g.argc==6 ? g.argv[5] : 0;
     tag_add_artifact(g.argv[3], g.argv[4], zValue, 2);
   }else
 
   if( strncmp(g.argv[2],"delete",n)==0 ){
     if( g.argc!=5 ){
-      usage("tag delete TAGNAME UUID");
+      usage("delete TAGNAME UUID");
     }
     tag_add_artifact(g.argv[3], g.argv[4], 0, 0);
   }else
 
   if( strncmp(g.argv[2],"find",n)==0 ){
     Stmt q;
     if( g.argc!=4 ){
-      usage("tag find TAGNAME");
+      usage("find TAGNAME");
     }
     db_prepare(&q,
       "SELECT blob.uuid FROM tagxref, blob"
       " WHERE tagid=(SELECT tagid FROM tag WHERE tagname=%Q)"
       "   AND blob.rid=tagxref.rid", g.argv[3]