Fossil SCM
Have the `test-comment-format' command call `verify_all_options()' to report unknown command-line options.
Commit
fb0845d1aaab27f37f52dc6f29b474e85151db07cb492c8c00b3ffa13cb60dfb
Parent
d5479ba7c66e745…
1 file changed
+1
+1
| --- src/comformat.c | ||
| +++ src/comformat.c | ||
| @@ -765,10 +765,11 @@ | ||
| 765 | 765 | if( zIndent ){ |
| 766 | 766 | indent = atoi(zIndent); |
| 767 | 767 | }else{ |
| 768 | 768 | indent = -1; /* automatic */ |
| 769 | 769 | } |
| 770 | + verify_all_options(); | |
| 770 | 771 | if( g.argc!=4 && g.argc!=5 ){ |
| 771 | 772 | usage("?OPTIONS? PREFIX TEXT ?ORIGTEXT?"); |
| 772 | 773 | } |
| 773 | 774 | zPrefix = g.argv[2]; |
| 774 | 775 | zText = g.argv[3]; |
| 775 | 776 |
| --- src/comformat.c | |
| +++ src/comformat.c | |
| @@ -765,10 +765,11 @@ | |
| 765 | if( zIndent ){ |
| 766 | indent = atoi(zIndent); |
| 767 | }else{ |
| 768 | indent = -1; /* automatic */ |
| 769 | } |
| 770 | if( g.argc!=4 && g.argc!=5 ){ |
| 771 | usage("?OPTIONS? PREFIX TEXT ?ORIGTEXT?"); |
| 772 | } |
| 773 | zPrefix = g.argv[2]; |
| 774 | zText = g.argv[3]; |
| 775 |
| --- src/comformat.c | |
| +++ src/comformat.c | |
| @@ -765,10 +765,11 @@ | |
| 765 | if( zIndent ){ |
| 766 | indent = atoi(zIndent); |
| 767 | }else{ |
| 768 | indent = -1; /* automatic */ |
| 769 | } |
| 770 | verify_all_options(); |
| 771 | if( g.argc!=4 && g.argc!=5 ){ |
| 772 | usage("?OPTIONS? PREFIX TEXT ?ORIGTEXT?"); |
| 773 | } |
| 774 | zPrefix = g.argv[2]; |
| 775 | zText = g.argv[3]; |
| 776 |