Fossil SCM

Have the `amend' command count arguments only once when option parsing is done.

florian 2024-01-13 12:58 trunk
Commit 30f18ce13012aea3ee6e6d188993bab909962fb22b673fc3b5ba0ef6cf199e0d
1 file changed -1
-1
--- src/info.c
+++ src/info.c
@@ -3547,11 +3547,10 @@
35473547
char *zNow;
35483548
int nTags, nCancels;
35493549
int i;
35503550
Stmt q;
35513551
3552
- if( g.argc==3 ) usage(AMEND_USAGE_STMT);
35533552
fEditComment = find_option("edit-comment","e",0)!=0;
35543553
zNewComment = find_option("comment","m",1);
35553554
zComFile = find_option("message-file","M",1);
35563555
zNewBranch = find_option("branch",0,1);
35573556
zNewColor = find_option("bgcolor",0,1);
35583557
--- src/info.c
+++ src/info.c
@@ -3547,11 +3547,10 @@
3547 char *zNow;
3548 int nTags, nCancels;
3549 int i;
3550 Stmt q;
3551
3552 if( g.argc==3 ) usage(AMEND_USAGE_STMT);
3553 fEditComment = find_option("edit-comment","e",0)!=0;
3554 zNewComment = find_option("comment","m",1);
3555 zComFile = find_option("message-file","M",1);
3556 zNewBranch = find_option("branch",0,1);
3557 zNewColor = find_option("bgcolor",0,1);
3558
--- src/info.c
+++ src/info.c
@@ -3547,11 +3547,10 @@
3547 char *zNow;
3548 int nTags, nCancels;
3549 int i;
3550 Stmt q;
3551
 
3552 fEditComment = find_option("edit-comment","e",0)!=0;
3553 zNewComment = find_option("comment","m",1);
3554 zComFile = find_option("message-file","M",1);
3555 zNewBranch = find_option("branch",0,1);
3556 zNewColor = find_option("bgcolor",0,1);
3557

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button