update options list in README and --help output

This commit is contained in:
Gabriel Wicki 2021-11-23 22:49:09 +01:00
parent 7d4c9dcabb
commit edd4bf6ec9
4 changed files with 37 additions and 4 deletions

17
README Normal file
View File

@ -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

View File

@ -1,2 +0,0 @@
# M2-Mesoplanet
Macro Expander Saving Our m2-PLANET

17
README.org Normal file
View File

@ -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
View File

@ -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 Gabriel Wicki
* This file is part of M2-Planet.
*
* 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"))
{
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);
}
else if(match(argv[i], "-V") || match(argv[i], "--version"))