📝 Update script metadata and modify argument parsing logic in commit.ts
This commit is contained in:
@@ -23,7 +23,7 @@ async function main() {
|
||||
const flags = parseArgs(Deno.args, {
|
||||
boolean: ["help", "check-only", "auto-commit"],
|
||||
alias: {
|
||||
H: "help",
|
||||
h: "help",
|
||||
C: "check-only",
|
||||
A: "auto-commit",
|
||||
},
|
||||
@@ -34,7 +34,7 @@ async function main() {
|
||||
if (flags.help) {
|
||||
console.log(`commit.ts
|
||||
|
||||
commit.ts [-H|--help] - show help message
|
||||
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
|
||||
`);
|
||||
@@ -117,5 +117,5 @@ main().catch((err) => {
|
||||
process.exit(0);
|
||||
}).then(() => process.exit(0));
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260412T103218+08:00.MEQCIHiNlGec5h1nMm8DdzCY
|
||||
// dmCVLfihKXkov+AmLoTwSU+wAiBmt279SHXXYxMEOWeXuyq/is77Dnk1BBMbWXUswqFAJQ==
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260412T103245+08:00.MEUCIQDIi9NgZUYx0R6D9QFj
|
||||
// pVVw5kHya5I06LfqgQNW7t9d1wIgVtCxF058zi3BI1Vp5C80dY1DA3LoDhW7mQZ+CSwi/28=
|
||||
|
||||
Reference in New Issue
Block a user