traitement des urls

This commit is contained in:
François Pelletier 2024-01-12 16:23:00 -05:00
parent 49d35282be
commit adcfbb31bf
3 changed files with 7 additions and 7 deletions

View file

@ -30,15 +30,15 @@ def main():
---
"""
if len(sys.argv) < 2:
print("Usage: python markdown_to_list.py <file>")
if len(sys.argv) < 3:
print("Usage: python markdown_to_list.py <depth> <file>")
sys.exit(1)
# read file passed as argument
with open(sys.argv[1], 'r') as my_file:
depth = int(sys.argv[1])
with open(sys.argv[2], 'r') as my_file:
text = my_file.read()
print(replace_title_with_list(text))
print(replace_title_with_list(text, depth))
if __name__ == '__main__':
main()

View file

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "markdown-fix-freeplane"
version = "0.0.2"
version = "0.0.3"
authors = [
{ name="François Pelletier", email="francois@jevalide.ca" },
]

View file

@ -2,7 +2,7 @@ import setuptools
setuptools.setup(
name="markdown_fix_freeplane",
version="0.0.2",
version="0.0.3",
url="https://git.jevalide.ca/partage/markdown-fix-freeplane",
author="François Pelletier",
author_email="francois@jevalide.ca",