0.1.6 • Published 4 years ago

quoda v0.1.6

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

Quoda

Build Status

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 git@ihacks.dev: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

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

0.1.6

4 years ago

0.1.0

4 years ago

0.0.0

4 years ago