/go-shlex

go-shlex is a POSIX command-line shell-like argument parser

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

go-shlex

CircleCI Go Report Card GoDoc

go-shlex is a POSIX command-line shell-like argument parser.

Differences

  • anmitsu/go-shlex: anmitsu does not support comments (#) and double-quoted dollar ($) and backtick (`) characters.

  • google/shlex: google does not support Unicode spaces and double-quoted newlines (\n) and backslashes (\). google also stops parsing upon error, while we (and anmitsu) will return partial results.