Fossil SCM

Added notes about --args FILENAME to default help message, per ML request.

stephan 2013-05-25 14:30 trunk
Commit 0e5bbade2c403dadcf50375f94a485ccf7efc85e
1 file changed +11
+11
--- src/main.c
+++ src/main.c
@@ -545,10 +545,21 @@
545545
fossil_print(
546546
"Usage: %s COMMAND ...\n"
547547
" or: %s help -- for a list of common commands\n"
548548
" or: %s help COMMMAND -- for help with the named command\n",
549549
g.argv[0], g.argv[0], g.argv[0]);
550
+ fossil_print(
551
+ "\nCommands and filenames may be passed on to fossil from a file\n"
552
+ "by using:\n"
553
+ "\n %s --args FILENAME ...\n",
554
+ g.argv[0]
555
+ );
556
+ fossil_print(
557
+ "\nEach line of the file is assumed to be a filename unles it starts\n"
558
+ "with '-' and contains a space, in which case it is assumed to be\n"
559
+ "another flag and is treated as such. --args FILENAME may be used\n"
560
+ "in conjunction with any other flags.\n");
550561
fossil_exit(1);
551562
}else{
552563
const char *zChdir = find_option("chdir",0,1);
553564
g.isHTTP = 0;
554565
g.fQuiet = find_option("quiet", 0, 0)!=0;
555566
--- src/main.c
+++ src/main.c
@@ -545,10 +545,21 @@
545 fossil_print(
546 "Usage: %s COMMAND ...\n"
547 " or: %s help -- for a list of common commands\n"
548 " or: %s help COMMMAND -- for help with the named command\n",
549 g.argv[0], g.argv[0], g.argv[0]);
 
 
 
 
 
 
 
 
 
 
 
550 fossil_exit(1);
551 }else{
552 const char *zChdir = find_option("chdir",0,1);
553 g.isHTTP = 0;
554 g.fQuiet = find_option("quiet", 0, 0)!=0;
555
--- src/main.c
+++ src/main.c
@@ -545,10 +545,21 @@
545 fossil_print(
546 "Usage: %s COMMAND ...\n"
547 " or: %s help -- for a list of common commands\n"
548 " or: %s help COMMMAND -- for help with the named command\n",
549 g.argv[0], g.argv[0], g.argv[0]);
550 fossil_print(
551 "\nCommands and filenames may be passed on to fossil from a file\n"
552 "by using:\n"
553 "\n %s --args FILENAME ...\n",
554 g.argv[0]
555 );
556 fossil_print(
557 "\nEach line of the file is assumed to be a filename unles it starts\n"
558 "with '-' and contains a space, in which case it is assumed to be\n"
559 "another flag and is treated as such. --args FILENAME may be used\n"
560 "in conjunction with any other flags.\n");
561 fossil_exit(1);
562 }else{
563 const char *zChdir = find_option("chdir",0,1);
564 g.isHTTP = 0;
565 g.fQuiet = find_option("quiet", 0, 0)!=0;
566

Keyboard Shortcuts

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