Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove --root-dir option #90

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions bin/codebasin
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@ def main():
help="Display version information and exit.",
)
deprecated_args = parser.add_argument_group("deprecated options")
deprecated_args.add_argument(
"-r",
"--rootdir",
dest="rootdir",
metavar="<dir>",
default=None,
help="Set working root directory. "
+ "Defaults to current working directory.",
)
deprecated_args.add_argument(
"-c",
"--config",
Expand Down Expand Up @@ -171,17 +162,8 @@ def main():
DeprecationWarning,
)

# Determine the root directory based on the -r flag.
rootpath = None
if not args.rootdir:
rootpath = os.getcwd()
elif args.rootdir:
warnings.warn(
"--rootdir (-r) is deprecated.",
DeprecationWarning,
)
rootpath = args.rootdir
rootdir = os.path.realpath(rootpath)
# Determine the root directory based on where codebasin is run.
rootdir = os.path.realpath(os.getcwd())

if args.config_file and args.analysis_file:
raise RuntimeError(
Expand Down
Loading