Skip to content

Commit

Permalink
Merge pull request #8 from sarvekshayr/test-branch-2
Browse files Browse the repository at this point in the history
Test branch 2
  • Loading branch information
sarvekshayr authored Aug 22, 2024
2 parents 1ad8dac + 33df88c commit 1d2d014
Showing 1 changed file with 5 additions and 3 deletions.
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()

0 comments on commit 1d2d014

Please sign in to comment.