Skip to content

Commit 454407f

Browse files
committed
Remove --root-dir option
Previously deprecated in 1.2.0. This commit does not remove the concept of a root directory, which is still used to determine whether a file belongs to the code base. Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 2486942 commit 454407f

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

bin/codebasin

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,6 @@ def main():
5757
help="Display version information and exit.",
5858
)
5959
deprecated_args = parser.add_argument_group("deprecated options")
60-
deprecated_args.add_argument(
61-
"-r",
62-
"--rootdir",
63-
dest="rootdir",
64-
metavar="<dir>",
65-
default=None,
66-
help="Set working root directory. "
67-
+ "Defaults to current working directory.",
68-
)
6960
deprecated_args.add_argument(
7061
"-c",
7162
"--config",
@@ -171,17 +162,8 @@ def main():
171162
DeprecationWarning,
172163
)
173164

174-
# Determine the root directory based on the -r flag.
175-
rootpath = None
176-
if not args.rootdir:
177-
rootpath = os.getcwd()
178-
elif args.rootdir:
179-
warnings.warn(
180-
"--rootdir (-r) is deprecated.",
181-
DeprecationWarning,
182-
)
183-
rootpath = args.rootdir
184-
rootdir = os.path.realpath(rootpath)
165+
# Determine the root directory based on where codebasin is run.
166+
rootdir = os.path.realpath(os.getcwd())
185167

186168
if args.config_file and args.analysis_file:
187169
raise RuntimeError(

0 commit comments

Comments
 (0)