From 401d90ed9f087e43d7fa00213d50cffeb99ceef8 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sat, 23 Aug 2025 21:20:39 +0200 Subject: g2h: basic program setup --- g2h/cli.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 g2h/cli.py (limited to 'g2h/cli.py') 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() -- cgit v1.2.3