Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions dev-support/ci/xml_to_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.


import os
import re
import zipfile
Expand Down Expand Up @@ -72,12 +73,12 @@ def generate_markdown(properties):
return markdown

def main():
if len(sys.argv) != 3:
print("Usage: python3 xml_to_md.py <base_path> <output_path>")
if len(sys.argv) < 2 or len(sys.argv) > 3:
print("Usage: python3 xml_to_md.py <base_path> [<output_path>]")
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(
Expand Down Expand Up @@ -111,3 +112,4 @@ def main():

if __name__ == '__main__':
main()