From 97ecf30fb896d57f1a9f3d705c08d911b176fd9d Mon Sep 17 00:00:00 2001 From: kyab Date: Fri, 4 Apr 2014 01:01:15 +0900 Subject: add --help option to mruby-config --- mrbgems/mruby-bin-mruby-config/mruby-config.bat | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mrbgems/mruby-bin-mruby-config/mruby-config.bat') diff --git a/mrbgems/mruby-bin-mruby-config/mruby-config.bat b/mrbgems/mruby-bin-mruby-config/mruby-config.bat index ffb52adbc..c306630c6 100644 --- a/mrbgems/mruby-bin-mruby-config/mruby-config.bat +++ b/mrbgems/mruby-bin-mruby-config/mruby-config.bat @@ -6,6 +6,7 @@ if "%0" equ "" goto :eof if "%0" equ "--cflags" goto cflags if "%0" equ "--ldflags" goto ldflags if "%0" equ "--libs" goto libs +if "%0" equ "--help" goto showhelp echo Invalid Option goto :eof @@ -20,3 +21,10 @@ goto top :ldflags echo MRUBY_LDFLAGS goto top + +:showhelp +echo Usage: mruby-config [switches] +echo switches: +echo --cflags print flags passed to compiler +echo --ldflags print flags passed to linker +echo --libs print linked libraries -- cgit v1.2.3