Open paulzzy opened 1 month ago
The problem is that Robotidy and Robocop use totally different cli parser (Robocop uses python default library while Robotidy uses click). This difference already lead to some problems in the past or missing features that had to be implemented separetely. I could add support for key=value options to Robocop but it could be additional work for something that could be supported out of the box of we made switch to click. I need to think about it how I want to approach it - maybe it is good time to switch Robocop cli parser engine to something more modern like click.
I think another reasonable approach is to just not support the --option=value
format (it seems to be a GNU convention and not everyone follows it). But in that case I think (1) it should be documented and (2) a warning/error should be raised when an unexpected argument is encountered.
I will also consider it - switching to click or alternative is a lot of work and its bit of separate subject. As for 2) I agree, it shouldnt silently accept unrecognized arguments. Most likely it was parsed as a file path but I need to check
What happened?
I noticed that Robocop wasn't following the config I specified when I used
--argumentfile
. See below for a minimal reproducible example.What command/code did you try to run?
With equal sign:
Without equal sign:
What is the full error message?
See above:
No config file found or configuration is empty. Using default configuration
What did you expect to happen instead?
--option=value
and--option value
should behave the same. I didn't test options beside--argumentfile
but I would assume the same bug is present for any long option. Note thatrobotidy
(and other tools using Python's defaultargparse
config) accepts both--option=value
and--option value
.Operating System
No response
Robocop version
5.0.4