cacjs / cac

Simple yet powerful framework for building command-line apps.
MIT License
2.65k stars 104 forks source link

fix: only output version message for root command #124

Closed falstack closed 3 years ago

falstack commented 3 years ago

当 Command 有 options 为 version 的时候,会匹配错误

codecov-commenter commented 3 years ago

Codecov Report

Merging #124 (9a0fc1e) into master (5060bd9) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #124   +/-   ##
=======================================
  Coverage   66.31%   66.31%           
=======================================
  Files           6        6           
  Lines         374      374           
  Branches       89       89           
=======================================
  Hits          248      248           
  Misses        124      124           
  Partials        2        2           
Impacted Files Coverage Δ
src/CAC.ts 67.37% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5060bd9...9a0fc1e. Read the comment docs.