diff --git a/dev-support/ci/xml_to_md.py b/dev-support/ci/xml_to_md.py index adb406c6fa3..c612a0b2782 100644 --- a/dev-support/ci/xml_to_md.py +++ b/dev-support/ci/xml_to_md.py @@ -16,6 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. + import os import re import zipfile @@ -72,12 +73,12 @@ def generate_markdown(properties): return markdown def main(): - if len(sys.argv) != 3: - print("Usage: python3 xml_to_md.py ") + if len(sys.argv) < 2 or len(sys.argv) > 3: + print("Usage: python3 xml_to_md.py []") sys.exit(1) base_path = sys.argv[1] - output_path = sys.argv[2] + output_path = sys.argv[2] if len(sys.argv) == 3 else None # Find ozone SNAPSHOT directory dynamically using regex snapshot_dir = next( @@ -111,3 +112,4 @@ def main(): if __name__ == '__main__': main() +