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

Add support for command line arguments #2

Closed
maxine4j opened this issue Dec 31, 2019 · 3 comments
Closed

Add support for command line arguments #2

maxine4j opened this issue Dec 31, 2019 · 3 comments

Comments

@maxine4j
Copy link
Owner

No description provided.

@maxine4j
Copy link
Owner Author

If any option is provided multiple times, only the last occurrence of the option is used

@maxine4j
Copy link
Owner Author

If targetname is present set it as the default target to rebuild

bake [command-line-options] [targetname]

@maxine4j
Copy link
Owner Author

The options are:

-C directoryname : before opening and reading the specification file, bake is to change directory to the indicated directory.

-f filename : instead of reading its specification from the default Bakefile or bakefile, bake reads its specification from the indicated file.

-i : ignore the unsuccessful termination of actions; continue executing a target's actions even if any fail.

-n : print (to stdout) each shell-command-sequence before it is to be executed, but do not actually execute the commands. Assume that each shell-command-sequence executes successfully. This option enables bake to simply report what it would do, without doing it.

-p : after reading in the specification file, print its information (from bake's internal representation) to stdout with all variable expansions performed. Then simply exit with success.
Only the targets, dependencies, and actions need be printed (though you may wish to also print the variables (names and values).

-s : execute silently, do not print each shell-command-sequence before it is executed.

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

No branches or pull requests

1 participant