Fossil SCM

Fix the usage comment for incorrect parameters on "fossil config sync". Separately, remove an extra newline from the usage output.

drh 2013-03-03 00:30 trunk
Commit 69fe4237cee86c0593edca3f4bde353d45783e45
2 files changed +1 -1 +1 -1
+1 -1
--- src/configure.c
+++ src/configure.c
@@ -888,11 +888,11 @@
888888
if( strncmp(zMethod,"pull",n)==0 ){
889889
overwriteFlag = find_option("overwrite",0,0)!=0;
890890
}
891891
url_proxy_options();
892892
if( g.argc!=4 && g.argc!=5 ){
893
- usage("pull AREA ?URL?");
893
+ usage(mprintf("%s AREA ?URL?", zMethod));
894894
}
895895
mask = configure_name_to_mask(g.argv[3], 1);
896896
if( g.argc==5 ){
897897
zServer = g.argv[4];
898898
}
899899
--- src/configure.c
+++ src/configure.c
@@ -888,11 +888,11 @@
888 if( strncmp(zMethod,"pull",n)==0 ){
889 overwriteFlag = find_option("overwrite",0,0)!=0;
890 }
891 url_proxy_options();
892 if( g.argc!=4 && g.argc!=5 ){
893 usage("pull AREA ?URL?");
894 }
895 mask = configure_name_to_mask(g.argv[3], 1);
896 if( g.argc==5 ){
897 zServer = g.argv[4];
898 }
899
--- src/configure.c
+++ src/configure.c
@@ -888,11 +888,11 @@
888 if( strncmp(zMethod,"pull",n)==0 ){
889 overwriteFlag = find_option("overwrite",0,0)!=0;
890 }
891 url_proxy_options();
892 if( g.argc!=4 && g.argc!=5 ){
893 usage(mprintf("%s AREA ?URL?", zMethod));
894 }
895 mask = configure_name_to_mask(g.argv[3], 1);
896 if( g.argc==5 ){
897 zServer = g.argv[4];
898 }
899
+1 -1
--- src/main.c
+++ src/main.c
@@ -605,11 +605,11 @@
605605
606606
/*
607607
** Print a usage comment and quit
608608
*/
609609
void usage(const char *zFormat){
610
- fossil_fatal("Usage: %s %s %s\n", g.argv[0], g.argv[1], zFormat);
610
+ fossil_fatal("Usage: %s %s %s", g.argv[0], g.argv[1], zFormat);
611611
}
612612
613613
/*
614614
** Remove n elements from g.argv beginning with the i-th element.
615615
*/
616616
--- src/main.c
+++ src/main.c
@@ -605,11 +605,11 @@
605
606 /*
607 ** Print a usage comment and quit
608 */
609 void usage(const char *zFormat){
610 fossil_fatal("Usage: %s %s %s\n", g.argv[0], g.argv[1], zFormat);
611 }
612
613 /*
614 ** Remove n elements from g.argv beginning with the i-th element.
615 */
616
--- src/main.c
+++ src/main.c
@@ -605,11 +605,11 @@
605
606 /*
607 ** Print a usage comment and quit
608 */
609 void usage(const char *zFormat){
610 fossil_fatal("Usage: %s %s %s", g.argv[0], g.argv[1], zFormat);
611 }
612
613 /*
614 ** Remove n elements from g.argv beginning with the i-th element.
615 */
616

Keyboard Shortcuts

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