|
168 | 168 | readable and/or writable for the current user (or the user logged in to a |
169 | 169 | remote system over SSH). |
170 | 170 |
|
| 171 | + -s, --stat-timestamp |
| 172 | +
|
| 173 | + Use mtime stat timestamps, instead of filenames, to determine the |
| 174 | + date of each file. |
| 175 | +
|
171 | 176 | -S, --syslog=CHOICE |
172 | 177 |
|
173 | 178 | Explicitly enable or disable system logging instead of letting the program |
@@ -241,12 +246,12 @@ def main(): |
241 | 246 | selected_locations = [] |
242 | 247 | # Parse the command line arguments. |
243 | 248 | try: |
244 | | - options, arguments = getopt.getopt(sys.argv[1:], 'M:H:d:w:m:y:t:I:x:jpri:c:C:uS:fnvqh', [ |
| 249 | + options, arguments = getopt.getopt(sys.argv[1:], 'M:H:d:w:m:y:t:I:x:jpri:c:C:usS:fnvqh', [ |
245 | 250 | 'minutely=', 'hourly=', 'daily=', 'weekly=', 'monthly=', 'yearly=', |
246 | 251 | 'timestamp-pattern=', 'include=', 'exclude=', 'parallel', |
247 | 252 | 'prefer-recent', 'relaxed', 'ionice=', 'config=', |
248 | | - 'removal-command=', 'use-sudo', 'syslog=', 'force', |
249 | | - 'dry-run', 'verbose', 'quiet', 'help', |
| 253 | + 'removal-command=', 'use-sudo', 'stat-timestamp', 'syslog=', |
| 254 | + 'force', 'dry-run', 'verbose', 'quiet', 'help', |
250 | 255 | ]) |
251 | 256 | for option, value in options: |
252 | 257 | if option in ('-M', '--minutely'): |
@@ -284,6 +289,8 @@ def main(): |
284 | 289 | kw['removal_command'] = removal_command |
285 | 290 | elif option in ('-u', '--use-sudo'): |
286 | 291 | use_sudo = True |
| 292 | + elif option in ('-s', '--stat-timestamp'): |
| 293 | + kw['stat_timestamp'] = True |
287 | 294 | elif option in ('-S', '--syslog'): |
288 | 295 | use_syslog = coerce_boolean(value) |
289 | 296 | elif option in ('-f', '--force'): |
|
0 commit comments