Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r95:c4d9348840a6 Date: 2014-11-27 16:39 +0100 http://bitbucket.org/cffi/creflect/changeset/c4d9348840a6/
Log: Tweak the command-line interface diff --git a/creflect/cmdline.py b/creflect/cmdline.py --- a/creflect/cmdline.py +++ b/creflect/cmdline.py @@ -1,12 +1,18 @@ """Usage: - creflect [options] input{.rfl.c,.h} output.c + creflect [options] input.crx output.c + creflect [options] -i input.h output.c -Read the 'input.rfl.c' file and expand the CREFLECT sections in it +Read the input file and expand the CREFLECT sections in it into regular C code. Write the result to 'output.c'. +The first variant is used to preprocess a 'foo.crx' file into 'foo.c', +which is identical except with expanded CREFLECT sections. The second +variant with the '-i' option is used to generate 'foo.c' containing +only the expansion of the CREFLECT sections found in 'foo.h'. + The input and/or output file names can be specified as '-' to read - from stdin and/or write to stdout. +from stdin and/or write to stdout. Options: -m/--main=NAME name of main exported function, default '_creflect_main' _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit