Skip to content
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

allow log level setting to appear anywhere #127

Open
andy-berry-dev opened this issue Oct 9, 2013 · 2 comments
Open

allow log level setting to appear anywhere #127

andy-berry-dev opened this issue Oct 9, 2013 · 2 comments

Comments

@andy-berry-dev
Copy link
Member

At the moment, the global flags --info, --debug, --pkg & --show-pkg all have to appear at the end of the command, but they should be able to appear at any point.

We should probably improve the way we do the parsing for the log level too

@andy-berry-dev
Copy link
Member Author

Comment from @dchambers on #834 (comment)

Also, why is it --info and not --verbose?

@andy-berry-dev andy-berry-dev changed the title better handling of log level setting allow log level setting to appear anywhere Jul 14, 2014
@andy-berry-dev
Copy link
Member Author

From @andreoid on #1357:

In our mutli-module gradle build files, I wanted to be able to change the top-level default brjs command to be "brjs --debug" rather than just "brjs".

But this is not possible as brjs --debug says
"No such command --debug"
e.g.

brjs --debug build-app fxtrader

If the debug comes at the end, it works

brjs build-app fxtrader --debug

But I need to be able to set it at the start, as in my top-level gradle build file, I want all my subprojects to inherit the method to execute brjs and to all have common flags.

(The problem affects the --info flag too, and quite possibly other flags also)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant