-
Notifications
You must be signed in to change notification settings - Fork 257
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
Either fail or support multiple targets #42
Comments
So, the idea is that a target may want to process arguments itself. Right now you can have a target get os.Args and read off the second argument you give it. There's a couple issues on this - #24 #34 See the discussion on #34 especially. I agree that it is suboptimal as-is. Maybe an interim solution is to default to disallowing extra args, but have an opt-in variable you can set to say you want to process extra args yourself. like
|
That isn't the word I would use. Having people moving from I think you should move extra args to a |
I'll make a PR to have mage fail with multiple args until we can flesh out how to run multiple targets in a sane way. |
See gohugoio/hugo#3939
Good thing I tested.
So I just replaced
make
withmage
and got:Wich does not fail. If you do not support multiple targets you really should exit with error + some error message.
The text was updated successfully, but these errors were encountered: