⚙️ Update script metadata and add command aliases in commit.ts

This commit is contained in:
2026-04-12 10:31:53 +08:00
parent 38b6f22145
commit cf27d7657d
2 changed files with 11 additions and 6 deletions

View File

@@ -22,6 +22,11 @@ async function checkRev(): Promise<boolean> {
async function main() {
const flags = parseArgs(Deno.args, {
boolean: ["help", "check-only", "auto-commit"],
alias: {
H: "help",
C: "check-only",
A: "auto-commit",
},
});
const checkOnly = flags["check-only"];
const autoCommit = flags["auto-commit"];
@@ -29,9 +34,9 @@ async function main() {
if (flags.help) {
console.log(`commit.ts
commit.ts [--help] - show help message
commit.ts [--check-only] - check rev and status only
commit.ts [--auto-commit] - auto commit with AI summarize
commit.ts [-H|--help] - show help message
commit.ts [-C|--check-only] - check rev and status only
commit.ts [-A|--auto-commit] - auto commit with AI summarize
`);
return;
}