diff --git a/README.md b/README.md index 13277692..b0f2cfd2 100644 --- a/README.md +++ b/README.md @@ -816,9 +816,6 @@ Shows help for the Fauna CLI. ```sh faunadb shell -VERSION - fauna-shell/1.1.0 darwin-x64 node-v20.6.0 - USAGE $ fauna [COMMAND] diff --git a/readme.py b/readme.py index 3322f59e..e6cc4cb0 100644 --- a/readme.py +++ b/readme.py @@ -42,7 +42,14 @@ def run(command: list[str]) -> str: if end != None: print(f"updated command {command}") - result = run(["./bin/run", *command[1:], "--help"]).strip().split("\n") + result = run(["./bin/run", *command[1:], "--help"]).strip() + + # remove the VERSION section + if command == ["fauna", "help"]: + m = re.search("VERSION.*\n.*\n\n", result) + result = result[:m.start()] + result[m.end():] + + result = result.split("\n") lines[start:end] = result i += len(result) - (end - start)