Following patch fixes the clash of the short forms of the --limit and
--dryrun options for the `fossil tag' command.

Another form than -N|--limit might be preferred to ensure a better
distinction from -n|--dryrun, such as -c|--limit or -l|limit.

--Florian

Index: src/tag.c
==================================================================
--- src/tag.c
+++ src/tag.c
@@ -403,11 +403,11 @@
 **         of results to the given value.
 **
 **         Options:
 **           --raw           Raw tag name.
 **           -t|--type TYPE  One of "ci", or "e".
-**           -n|--limit N    Limit to N results.
+**           -N|--limit N    Limit to N results.
 **
 **     %fossil tag list|ls ?--raw? ?CHECK-IN?
 **
 **         List all tags, or if CHECK-IN is supplied, list
 **         all tags and their values for CHECK-IN.
@@ -435,11 +435,11 @@
 void tag_cmd(void){
   int n;
   int fRaw = find_option("raw","",0)!=0;
   int fPropagate = find_option("propagate","",0)!=0;
   const char *zPrefix = fRaw ? "" : "sym-";
-  const char *zFindLimit = find_option("limit","n",1);
+  const char *zFindLimit = find_option("limit","N",1);
   const int nFindLimit = zFindLimit ? atoi(zFindLimit) : -2000;

   db_find_and_open_repository(0, 0);
   if( g.argc<3 ){
     goto tag_cmd_usage;
@@ -485,11 +485,11 @@
     Stmt q;
     const char *zType = find_option("type","t",1);
     Blob sql = empty_blob;
     if( zType==0 || zType[0]==0 ) zType = "*";
     if( g.argc!=4 ){
-      usage("find ?--raw? ?-t|--type TYPE? ?-n|--limit #? TAGNAME");
+      usage("find ?--raw? ?-t|--type TYPE? ?-N|--limit #? TAGNAME");
     }
     if( fRaw ){
       blob_append_sql(&sql,
         "SELECT blob.uuid FROM tagxref, blob"
         " WHERE tagid=(SELECT tagid FROM tag WHERE tagname=%Q)"
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to