mickabouille Posted August 15 Share Posted August 15 Does anyone know how the --ask-only weidu option is supposed to work? I tries to use it on cdtweaks, for example weidu cdtweaks/setup-cdtweaks.tp2 --language 0 --ask-only 4020 But in every case I always get the questions Would you like to display the readme? [Y]es [N]o N Would you like to display the components from [Cosmetic Changes]? [Y]es, [N]o? Even though it (probably) shouldn't ask either of these question ask I specifically ask to ask only for the designated component? Quote Link to comment
CamDawg Posted August 15 Share Posted August 15 I suspect GROUPs bypass this mechanic. I think ask-only is based on the same code that prompts WeiDU to ask 'ask about components that are already/not installed'. Using GROUP disables those prompts, so it looks like it also does it to ask-only. If you're just looking to install, or reinstall, one component, --force-install-list works fine and is what I use for testing. --force-uninstall-list (for a selected list) or just --uninstall (for everything) work for removing it. Quote Link to comment
mickabouille Posted August 15 Author Share Posted August 15 Well, no, the example I gave was really simple to try to explain my problem. I'm already using --force-install-list in other (not related) cases, for example like that https://github.com/mleduque/modda/blob/99779522b0e72f8e5c0a63627c2a74aaadae2cea/modda-lib/src/run_weidu.rs#L75 What I am really trying to do is have a list of components and have weidu ask for each if they should be installed. I could do it outside and just feed the list to weidu with --f-i-l but just detecting if the component is installable (REQUIRE_*, FORBID_COMPONENT etc.) is... not that easy. For example, how would I tell weidu : ask me only about the components in the "Rule Changes" group? Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.