Definition at line 166 of file dqmdata_cleaner.py.
def dqmdata_cleaner.CommandLineArgsCollector.__init__ |
( |
|
self | ) |
|
Definition at line 168 of file dqmdata_cleaner.py.
170 usage = sys.argv[0] +
' [options] PATH_TO_ANALYSE'
171 parser = OptionParser(usage=usage)
173 parser.add_option(
'-d',
176 dest=
'ReferenceDate',
177 metavar=
'YYYY-MM-DD',
178 help=
'All the ROOT files older than [YYYY-MM-DD] will be marked for deletion. If the '
179 'user does not specify this option no date filter will be applied at all')
180 parser.add_option(
'-v',
181 '--versions_to_keep',
183 dest=
'VersionsToKeep',
184 metavar=
'VERSIONS_TO_KEEP',
185 help=
'Specify number of versions to keep. If a ROOT file has many versions only the most '
186 'recent [VERSIONS_TO_KEEP] of them will be kept. The others will be marked for '
187 'deletion. It the user does not specify this option no version filter will be applied '
189 parser.add_option(
'-q',
194 help=
'If this flag is specified no output is printed to STDOUT.')
195 parser.add_option(
'-f',
201 help=
'Print all ROOT files selected for deletion to a [LOG_FILE]. If [LOG_FILE] already '
202 'exists it will be deleted.')
205 (options, args) = parser.parse_args()
208 self.
Quiet = options.Quiet