diff --git a/install.sh b/install.sh deleted file mode 100644 index e69de29..0000000 diff --git a/main.ts b/main.ts index 5d95066..5924fc2 100644 --- a/main.ts +++ b/main.ts @@ -452,11 +452,56 @@ async function getDefaultFormat(): Promise { // Update main function to use stored styles async function main(): Promise { const flags = parse(Deno.args, { - string: ["author", "style"], - boolean: ["learn", "list-authors", "reset-format"], - default: { learn: false, "list-authors": false }, + string: ["author", "style", "format"], + boolean: ["help", "learn", "list-authors", "reset-format"], + default: { help: false, learn: false, "list-authors": false }, + alias: { h: "help" }, }); + // Handle --help flag + if (flags.help) { + console.log(` +auto-commit - AI-powered git commit message generator + +USAGE: + auto-commit [OPTIONS] + git ac # if git alias configured + +OPTIONS: + -h, --help Show this help message + --format=