-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
Inconsistent flag dashes #760
Comments
@rew1nter so, the "idea" is that shorthand arguments only get a single dash. We tried to model after Also for whatever its worth, axiom needs to be very careful with how it determines if a user provided argument is intended for axiom itself, or is it intended to be passed to the instances/module. So we have to keep unique argument names and is one reason why we dont have both a short and long form for every flag. For example if a tool/module you are distributing has a native |
Theoretically, you couldn't keep all argument names unique for axiom since users can add their custom modules with flags you aren't aware of
I think it's better for this to be made the only possible way of specifying native arguments. This will reduce complexity and allow axiom to have better flags. Or you could consider this input system for native flags instead of axiom-scan --cache --native "--cache -verbose -t 10 -other-native-flag" --axiom-flag Here all the native flags/args will be passed on to one axiom flag called |
imo one of the cooler parts of axiom is how we interpolate user provided command line args (extra args) directly to the module. But it comes with the downside you describe.
this is an option. I would really prefer to also keep the automatic I think what I can do is, if an option like I'll continue to thing about this. Thanks. |
@rew1nter something like this? https://github.com/pry0cc/axiom/blob/explicit-extra-args/interact/axiom-scan explicitly define extra args to be passed
Automatically pass extra args
Something like this will pass
|
yes exactly that
I agree. But you can't keep this feature around forever since this is the root cause of this flag issue. If you'll be implementing this, what I would suggest is putting the deprecation message of this feature up on the repo, along with the new alternative, for 6 - 10 months and also printing a log message from axiom script about this. So users can take their sweet time updating the automation before this feature gets deprecated. |
I noticed this on
axiom-scan
help. The flag dash patterns do not follow any pattern. This can be confusing to remember the dashesYou could instead do:
The text was updated successfully, but these errors were encountered: