[pypy-commit] creflect default: Tweak the command-line interface

arigo noreply at buildbot.pypy.org
Thu Nov 27 16:38:49 CET 2014


Author: Armin Rigo <arigo at 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'


More information about the pypy-commit mailing list