Fossil SCM
Have the `amend' command count arguments only once when option parsing is done.
Commit
30f18ce13012aea3ee6e6d188993bab909962fb22b673fc3b5ba0ef6cf199e0d
Parent
e5bcfd1efe9b638…
1 file changed
-1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -3547,11 +3547,10 @@ | ||
| 3547 | 3547 | char *zNow; |
| 3548 | 3548 | int nTags, nCancels; |
| 3549 | 3549 | int i; |
| 3550 | 3550 | Stmt q; |
| 3551 | 3551 | |
| 3552 | - if( g.argc==3 ) usage(AMEND_USAGE_STMT); | |
| 3553 | 3552 | fEditComment = find_option("edit-comment","e",0)!=0; |
| 3554 | 3553 | zNewComment = find_option("comment","m",1); |
| 3555 | 3554 | zComFile = find_option("message-file","M",1); |
| 3556 | 3555 | zNewBranch = find_option("branch",0,1); |
| 3557 | 3556 | zNewColor = find_option("bgcolor",0,1); |
| 3558 | 3557 |
| --- 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 |