File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,6 @@ def main():
57
57
help = "Display version information and exit." ,
58
58
)
59
59
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
- )
69
60
deprecated_args .add_argument (
70
61
"-c" ,
71
62
"--config" ,
@@ -171,17 +162,8 @@ def main():
171
162
DeprecationWarning ,
172
163
)
173
164
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 ())
185
167
186
168
if args .config_file and args .analysis_file :
187
169
raise RuntimeError (
You can’t perform that action at this time.
0 commit comments