mirror of
https://github.com/reactos/ninja.git
synced 2024-11-26 21:20:23 +00:00
use -f for input file, matching make
This commit is contained in:
parent
e5cf693cdc
commit
4caf59af8d
@ -1,5 +1,5 @@
|
||||
# An input file for running a "slow" build.
|
||||
# Use like: ninja -i misc/long-slow-build.ninja all
|
||||
# Use like: ninja -f misc/long-slow-build.ninja all
|
||||
|
||||
rule sleep
|
||||
command = sleep 1
|
||||
|
@ -32,7 +32,7 @@ void usage(const BuildConfig& config) {
|
||||
"usage: ninja [options] target\n"
|
||||
"\n"
|
||||
"options:\n"
|
||||
" -i FILE specify input build file [default=build.ninja]\n"
|
||||
" -f FILE specify input build file [default=build.ninja]\n"
|
||||
" -j N run N jobs in parallel [default=%d]\n"
|
||||
" -n dry run (don't run commands but pretend they succeeded)\n"
|
||||
" -v show all command lines\n"
|
||||
@ -144,9 +144,9 @@ int main(int argc, char** argv) {
|
||||
config.parallelism = GuessParallelism();
|
||||
|
||||
int opt;
|
||||
while ((opt = getopt_long(argc, argv, "hi:j:nt:v", options, NULL)) != -1) {
|
||||
while ((opt = getopt_long(argc, argv, "f:hj:nt:v", options, NULL)) != -1) {
|
||||
switch (opt) {
|
||||
case 'i':
|
||||
case 'f':
|
||||
input_file = optarg;
|
||||
break;
|
||||
case 'j':
|
||||
|
Loading…
Reference in New Issue
Block a user