update options list in README and --help output
This commit is contained in:
parent
7d4c9dcabb
commit
edd4bf6ec9
|
@ -0,0 +1,17 @@
|
||||||
|
#+title: M2-Mesoplanet
|
||||||
|
Macro Expander Saving Our m2-PLANET
|
||||||
|
|
||||||
|
* About
|
||||||
|
M2-Mesoplanet simplifies the bootstrappable stage0/M2-Planet toolchain by imitating gcc's behaviour.
|
||||||
|
|
||||||
|
* Options
|
||||||
|
- -f <path> :: input file (specify as many as necessary)
|
||||||
|
- -o <path> :: output file (specify once)
|
||||||
|
- --help or -h :: output simple help message
|
||||||
|
- --version or -V :: output file version
|
||||||
|
|
||||||
|
- -E or --preprocess-only :: do not spawn processes to generate executable file
|
||||||
|
- --max-string <N> :: N is a number
|
||||||
|
- --fuzz :: prevents execution of dangerous random garbage
|
||||||
|
- --no-debug :: strip debug symbols from output
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
#+title: M2-Mesoplanet
|
||||||
|
Macro Expander Saving Our m2-PLANET
|
||||||
|
|
||||||
|
* About
|
||||||
|
M2-Mesoplanet simplifies the bootstrappable stage0/M2-Planet toolchain by imitating gcc's behaviour.
|
||||||
|
|
||||||
|
* Options
|
||||||
|
- -f <path> :: input file (specify as many as necessary)
|
||||||
|
- -o <path> :: output file (specify once)
|
||||||
|
- --help or -h :: output simple help message
|
||||||
|
- --version or -V :: output file version
|
||||||
|
|
||||||
|
- -E or --preprocess-only :: do not spawn processes to generate executable file
|
||||||
|
- --max-string <N> :: N is a number
|
||||||
|
- --fuzz :: prevents execution of dangerous random garbage
|
||||||
|
- --no-debug :: strip debug symbols from output
|
||||||
|
|
5
cc.c
5
cc.c
|
@ -1,5 +1,6 @@
|
||||||
/* Copyright (C) 2016 Jeremiah Orians
|
/* Copyright (C) 2016, 2021 Jeremiah Orians
|
||||||
* Copyright (C) 2020 deesix <deesix@tuta.io>
|
* Copyright (C) 2020 deesix <deesix@tuta.io>
|
||||||
|
* Copyright (C) 2020 Gabriel Wicki
|
||||||
* This file is part of M2-Planet.
|
* This file is part of M2-Planet.
|
||||||
*
|
*
|
||||||
* M2-Planet is free software: you can redistribute it and/or modify
|
* M2-Planet is free software: you can redistribute it and/or modify
|
||||||
|
@ -118,7 +119,7 @@ int main(int argc, char** argv, char** envp)
|
||||||
}
|
}
|
||||||
else if(match(argv[i], "-h") || match(argv[i], "--help"))
|
else if(match(argv[i], "-h") || match(argv[i], "--help"))
|
||||||
{
|
{
|
||||||
fputs(" -f input file\n -o output file\n --help for this message\n --version for file version\n", stdout);
|
fputs(" -f input file\n -o output file\n --help for this message\n --version for file version\n-E or --preprocess-only\n--max-string N (N is a number)\n--fuzz\n--no-debug\n", stdout);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
else if(match(argv[i], "-V") || match(argv[i], "--version"))
|
else if(match(argv[i], "-V") || match(argv[i], "--version"))
|
||||||
|
|
Loading…
Reference in New Issue