Commit 9770256
committed
Display a warning when using invalid command arguments.
For example if you pass `sudo_user=fizzadar` without `sudo=True`, this
will now show a warning instead of doing nothing. This is, IMO, safter
than implicitly applying `sudo=True`. One possible improvement is to
error in such situations, but that might open up another can of worms,
plus it's a breaking (v2) change.1 parent 85760f9 commit 9770256
1 file changed
+23
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
206 | 216 | | |
207 | 217 | | |
208 | 218 | | |
| |||
240 | 250 | | |
241 | 251 | | |
242 | 252 | | |
243 | | - | |
| 253 | + | |
244 | 254 | | |
245 | 255 | | |
246 | 256 | | |
247 | 257 | | |
248 | | - | |
249 | 258 | | |
250 | 259 | | |
251 | 260 | | |
| |||
270 | 279 | | |
271 | 280 | | |
272 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
273 | 288 | | |
274 | | - | |
275 | 289 | | |
276 | 290 | | |
277 | 291 | | |
| |||
290 | 304 | | |
291 | 305 | | |
292 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
293 | 313 | | |
294 | 314 | | |
295 | 315 | | |
| |||
0 commit comments