blob: e7c66fca7dd8449c2bd7235ba4a37e5b98206edf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import argparse
def parse_args():
parser = argparse.ArgumentParser(
prog='g2h',
description='Convert a git repository into markdown files Hugo can understand.')
parser.add_argument('repo-path', help='Path to the root of git repository')
parser.add_argument('out-dir', help='Path to where the generated files should be stored')
return parser.parse_args()
def main():
args = parse_args()
if __name__ == '__main__':
main()
|