From 4d7fb7c65042eeb3e836f3d85673f2ec5d165995 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 12 Jul 2020 12:46:16 +0800 Subject: [PATCH] docs(commit-msg): add usage, install sample --- scripts/commit-msg.crs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/commit-msg.crs b/scripts/commit-msg.crs index 4668145..1dad456 100755 --- a/scripts/commit-msg.crs +++ b/scripts/commit-msg.crs @@ -7,6 +7,12 @@ use std::process::Command; /// Git commit message format check util /// /// Commit format MUST be (): subject +/// +/// Usage: +/// `commit-msg.crs usage` +/// +/// Install: +/// `commit-msg.crs install` fn main() { let arg1 = env::args().nth(1).unwrap_or_else(|| { exit_with_error_message("Commit message is EMPTY!");