@@ -84,17 +84,27 @@ def arg_parser(): # type: () -> argparse.ArgumentParser
84
84
default = True , help = "Do not delete Docker container used by jobs after they exit" ,
85
85
dest = "rm_container" )
86
86
87
- parser .add_argument ("--record-container-id" , action = "store_true" , default = False ,
88
- help = "If enabled, a file with suffix \" .cid\" will be created storing the container ID under CIDFILE_DIR" ,
89
- dest = "record_container_id" )
90
-
91
- parser .add_argument ("--cidfile-dir" , type = Text ,
92
- help = "Directory for storing cidfiles. Default at /tmp/" ,
93
- default = "/tmp/" ,
87
+ group = parser .add_argument_group ("options for docker container ID file" ,
88
+ "These options determine whether docker"
89
+ "write container ID to a file (cidfile) "
90
+ "when a container is created, where it "
91
+ "should be placed and how it should be named." )
92
+ group .add_argument ("--record-container-id" , action = "store_true" ,
93
+ default = False ,
94
+ help = "If enabled, store the container ID file under the "
95
+ "directory specified by --cidfile-dir" ,
96
+ dest = "record_container_id" )
97
+
98
+ group .add_argument ("--cidfile-dir" , type = Text ,
99
+ help = "Directory for storing the container ID file. "
100
+ "Default at current directory" ,
101
+ default = "" ,
94
102
dest = "cidfile_dir" )
95
103
96
- parser .add_argument ("--cidfile-prefix" , type = Text ,
97
- help = "Give a prefix to cidfile. Final file name will be followed by a timestamp. Default empty." ,
104
+ group .add_argument ("--cidfile-prefix" , type = Text ,
105
+ help = "Specify a prefix to the container ID file. "
106
+ "Final file name will be followed by a timestamp. "
107
+ "Default \" \" " ,
98
108
default = "" ,
99
109
dest = "cidfile_prefix" )
100
110
@@ -175,7 +185,8 @@ def arg_parser(): # type: () -> argparse.ArgumentParser
175
185
exgroup .add_argument ("--verbose" , action = "store_true" , help = "Default logging" )
176
186
exgroup .add_argument ("--quiet" , action = "store_true" , help = "Only print warnings and errors." )
177
187
exgroup .add_argument ("--debug" , action = "store_true" , help = "Print even more logging" )
178
- parser .add_argument ("--logtstp" , action = "store_true" , help = "Print timestamps with logging" )
188
+ parser .add_argument ("--timestamps" , action = "store_true" ,
189
+ help = "Add timestamps to the errors, warnings, and notifications." )
179
190
180
191
parser .add_argument ("--js-console" , action = "store_true" , help = "Enable javascript console output" )
181
192
parser .add_argument ("--user-space-docker-cmd" ,
@@ -789,7 +800,7 @@ def main(argsl=None, # type: List[str]
789
800
'cachedir' : None ,
790
801
'quiet' : False ,
791
802
'debug' : False ,
792
- 'logtstp ' : False ,
803
+ 'timestamps ' : False ,
793
804
'js_console' : False ,
794
805
'version' : False ,
795
806
'enable_dev' : False ,
@@ -818,7 +829,7 @@ def main(argsl=None, # type: List[str]
818
829
_logger .setLevel (logging .WARN )
819
830
if args .debug :
820
831
_logger .setLevel (logging .DEBUG )
821
- if args .logtstp :
832
+ if args .timestamps :
822
833
formatter = logging .Formatter ("[%(asctime)s] %(message)s" ,
823
834
"%Y-%m-%d %H:%M:%S" )
824
835
stderr_handler .setFormatter (formatter )
0 commit comments