diff options
-rwxr-xr-x | tools/ac_converter.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/ac_converter.py b/tools/ac_converter.py index eda5097..739c42c 100755 --- a/tools/ac_converter.py +++ b/tools/ac_converter.py @@ -14,7 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""This script reads config.h.meson, looks for header +help_message = """Usage: %s <config.h.meson> + +This script reads config.h.meson, looks for header checks and writes the corresponding meson declaration. Copy config.h.in to config.h.meson, replace #undef @@ -364,6 +366,11 @@ function_data = \ headers = [] functions = [] sizes = [] + +if len(sys.argv) != 2: + print(help_message % sys.argv[0]) + sys.exit(0) + with open(sys.argv[1]) as f: for line in f: line = line.strip() |