crystalline icon indicating copy to clipboard operation
crystalline copied to clipboard

Add a CLI with options parsing

Open mjblack opened this issue 1 year ago • 2 comments

I installed Crystalline a while ago and I don't know which version I have installed. It would be nice if I could do something like the following.

$ crystalline --version
Crystalline Version v0.13.1

or something like

$ crystalline --help
Usage:
   crystalline [flags...]

Crystalline LSP

Flags:
    --help, -h                            # Displays help file
    --debug, -d                           # Enables debugging
    --version                             # Version information

mjblack avatar Jun 30 '24 15:06 mjblack

Looks like this exists in 0.16.0

$ brew info crystalline
==> crystalline: stable 0.16.0 (bottled)
Language Server Protocol implementation for Crystal
https://github.com/elbywan/crystalline
Installed
/opt/homebrew/Cellar/crystalline/0.16.0 (6 files, 11.3MB) *
  Poured from bottle using the formulae.brew.sh API on 2025-02-18 at 10:38:14
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/c/crystalline.rb
License: MIT
==> Dependencies
Required: bdw-gc ✔, crystal ✔, libevent ✔, libyaml ✔, llvm ✔, pcre2 ✔
==> Analytics
install: 102 (30 days), 175 (90 days), 1,161 (365 days)
install-on-request: 102 (30 days), 175 (90 days), 1,161 (365 days)
build-error: 0 (30 days)

and

$ crystalline --version
0.16.0+unknown

igbanam avatar Mar 10 '25 01:03 igbanam

a761ed9cf923070da9333fd84706a27ab5a3e8b5

igbanam avatar Mar 10 '25 03:03 igbanam