Skip to content

Commit 06e97e2

Browse files
committed
relink.py: Hide --source-root and --target-root args.
This matches the hiding of -inputdata arg in rimport.
1 parent 2d6f3ad commit 06e97e2

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

relink.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,22 +188,20 @@ def parse_arguments():
188188
"Find files owned by a user and replace them with symbolic links to a target directory."
189189
)
190190
)
191+
192+
# Source and target directories. Hide from help text because these should only be used for
193+
# testing purposes. (That purpose could eventually be replaced with mocked default dirs.)
191194
parser.add_argument(
192195
"--source-root",
193196
type=validate_directory,
194197
default=DEFAULT_SOURCE_ROOT,
195-
help=(
196-
f"The root of the directory tree to search for files (default: {DEFAULT_SOURCE_ROOT})"
197-
),
198+
help=argparse.SUPPRESS,
198199
)
199200
parser.add_argument(
200201
"--target-root",
201202
type=validate_directory,
202203
default=DEFAULT_TARGET_ROOT,
203-
help=(
204-
f"The root of the directory tree where files should be moved to "
205-
f"(default: {DEFAULT_TARGET_ROOT})"
206-
),
204+
help=argparse.SUPPRESS,
207205
)
208206

209207
# Verbosity options (mutually exclusive)

0 commit comments

Comments
 (0)