|
12 | 12 | import time |
13 | 13 | from pathlib import Path |
14 | 14 |
|
15 | | -from shared import DEFAULT_INPUTDATA_ROOT, DEFAULT_STAGING_ROOT, get_log_level |
| 15 | +from shared import ( |
| 16 | + DEFAULT_INPUTDATA_ROOT, |
| 17 | + DEFAULT_STAGING_ROOT, |
| 18 | + get_log_level, |
| 19 | + add_parser_verbosity_group, |
| 20 | +) |
16 | 21 |
|
17 | 22 | # Set up logger |
18 | 23 | logger = logging.getLogger(__name__) |
@@ -175,7 +180,11 @@ def find_owned_files_scandir(item, user_uid, inputdata_root=DEFAULT_INPUTDATA_RO |
175 | 180 |
|
176 | 181 |
|
177 | 182 | def replace_files_with_symlinks( |
178 | | - item_to_process, target_dir, username, inputdata_root=DEFAULT_INPUTDATA_ROOT, dry_run=False |
| 183 | + item_to_process, |
| 184 | + target_dir, |
| 185 | + username, |
| 186 | + inputdata_root=DEFAULT_INPUTDATA_ROOT, |
| 187 | + dry_run=False, |
179 | 188 | ): |
180 | 189 | """ |
181 | 190 | Finds files owned by a specific user in a source directory tree, |
@@ -357,17 +366,8 @@ def parse_arguments(): |
357 | 366 | help=argparse.SUPPRESS, |
358 | 367 | ) |
359 | 368 |
|
360 | | - # Verbosity options (mutually exclusive) |
361 | | - verbosity_group = parser.add_mutually_exclusive_group() |
362 | | - verbosity_group.add_argument( |
363 | | - "-v", "--verbose", action="store_true", help="Enable verbose output" |
364 | | - ) |
365 | | - verbosity_group.add_argument( |
366 | | - "-q", |
367 | | - "--quiet", |
368 | | - action="store_true", |
369 | | - help="Quiet mode (show only warnings and errors)", |
370 | | - ) |
| 369 | + # Add verbosity options |
| 370 | + add_parser_verbosity_group(parser) |
371 | 371 |
|
372 | 372 | parser.add_argument( |
373 | 373 | "--dry-run", |
|
0 commit comments