quoda
v0.1.6
Published
An argument parser library.
Downloads
6
Readme
Quoda
Quada is a significant commandline argument parser. It takes a string and parses it into an object of arguments and options.
Pronounced kouda.
Installation
Installation with NPM.
npm i -S quoda
Installation with Yarn.
yarn add quoda
Installation - From source
The source code is located at a custom git server.
git clone [email protected]:ihack2712/quoda && cd quoda
Building
Build with NPM.
npm run source:build
Build with Yarn.
yarn source:build
If you want it to build continously as the content updates you may also add :watch
at then end of the command (without spaces).
Command Syntax
Quoda comes with its own set of commandline syntaxes, it adds a little extra to the ones you're already familiar with.
Root Usage
[command-string]
With Prefix - E.g. used in a discord bot.
[prefix][command-string]
Command-string
The command string is another syntax format.
Examples
command
command arg1
command arg1 arg2 arg3
command "arg with spaces"
command 'arg with spaces and single quote'
"command with spaces"
command --flag
command -f
command --key value
command -k value
group:command -k value -f
command --a-flag --b-flag
command -ab
command --a-flag --b-flag --key value
command -abk value