Fossil SCM

Have the `test-comment-format' command call `verify_all_options()' to report unknown command-line options.

florian 2024-10-02 14:45 comment-formatter-wcwidth
Commit fb0845d1aaab27f37f52dc6f29b474e85151db07cb492c8c00b3ffa13cb60dfb
1 file changed +1
--- src/comformat.c
+++ src/comformat.c
@@ -765,10 +765,11 @@
765765
if( zIndent ){
766766
indent = atoi(zIndent);
767767
}else{
768768
indent = -1; /* automatic */
769769
}
770
+ verify_all_options();
770771
if( g.argc!=4 && g.argc!=5 ){
771772
usage("?OPTIONS? PREFIX TEXT ?ORIGTEXT?");
772773
}
773774
zPrefix = g.argv[2];
774775
zText = g.argv[3];
775776
--- 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

Keyboard Shortcuts

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