add option -h and man page for afl-as
MODIFY
Makefile
Makefile
@@ -33,7 +33,7 @@ VERSION = $(shell grep '^$(HASH)define VERSION ' ../config.h | cut -d '"' -f
PROGS = afl-gcc afl-fuzz afl-showmap afl-tmin afl-gotcpu afl-analyze
SH_PROGS = afl-plot afl-cmin afl-cmin.bash afl-whatsup afl-system-config
-MANPAGES=$(foreach p, $(PROGS) $(SH_PROGS), $(p).8)
+MANPAGES=$(foreach p, $(PROGS) $(SH_PROGS), $(p).8) afl-as.8
ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -flto=full -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
CFLAGS_FLTO ?= -flto=full

MODIFY
src/afl-as.c
src/afl-as.c
@@ -518,7 +518,7 @@ int main(int argc, char** argv) {
be_quiet = 1;
- if (argc < 2) {
+ if (argc < 2 || (argc == 2 && strcmp(argv[1], "-h") == 0)) {
SAYF(
"\n"

add option -h and man page for afl-as