diff options
Diffstat (limited to 'g2h/cli.py')
| -rw-r--r-- | g2h/cli.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/g2h/cli.py b/g2h/cli.py new file mode 100644 index 0000000..e7c66fc --- /dev/null +++ b/g2h/cli.py @@ -0,0 +1,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() |