awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
Mojang avatar

Mojang/brigadier

0
View on GitHub↗
3,698 stars·410 forks·Java·MIT·5 views

Brigadier

Brigadier is a command-line parser and dispatcher that maps text-based inputs to executable functions using a hierarchical tree of arguments. It provides a system for defining nested command structures and typed arguments to route user input to specific handlers.

The library includes a command syntax generator that automatically produces human-readable usage strings and documentation based on defined command nodes. It transforms raw strings into structured data to identify valid command sequences and pinpoint syntax errors.

The framework covers command tree routing, input syntax validation, and dynamic dispatching using context objects to execute actions based on the user's state.

Features

  • Command Tree Definitions - A system for building hierarchical structures of strings and arguments to map user input to specific executable functions.
  • Command Line Parsers - Provides a mechanism to transform raw text inputs into structured command sequences and executable function calls.
  • Hierarchical Command Dispatch - Provides a library for mapping text-based command inputs to executable functions using a hierarchical tree of arguments.
  • Command Line Parsing - Converts raw text input into structured data based on predefined rules to determine the appropriate action.
  • CLI Command Dispatchers - Provides a mechanism for routing parsed command inputs to corresponding handler functions for execution.
  • Argument Parsing - Provides logic for processing and validating command-line arguments and flags to configure tool behavior.
  • Nested Command Structures - Maps hierarchical command structures to executable functions to handle complex nested subcommands and arguments.
  • Command Line Argument Parsing - Transforms raw text into structured results by matching input against a command tree and extracting typed arguments.
  • Command Grammar Traversers - Walks through nested command children to determine if an input string matches the defined command grammar.
  • Command Routing Architectures - Implements a routing architecture that maps raw input strings against a hierarchical node structure to find terminal handlers.
  • Command Line Documentation - Automatically generates human-readable syntax guides and usage strings from a structured command tree.
  • Contextual Execution State - Implements a system to pass source objects through the execution chain to provide handlers with environmental state.
  • Documentation Generators - Automatically generates human-readable strings describing valid syntax and available subcommands for specific nodes.
  • Keyword-Based Command Dispatchers - Routes parsed input to logic handlers using context objects to execute actions based on the user's state.
  • Parse Result Objects - Stores the outcome of parse operations in objects that track matched nodes and pinpoint syntax errors.
  • Usage Documentation Generators - Automatically produces human-readable usage strings and documentation based on defined command nodes.
  • Usage String Generators - Automatically constructs human-readable syntax strings and documentation based on the defined command node hierarchy.
  • CLI Syntax Consistency Validation - Checks user input against a command schema to identify structural inconsistencies and provide usage hints.

Star history

Star history chart for mojang/brigadierStar history chart for mojang/brigadier

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Brigadier

Similar open-source projects, ranked by how many features they share with Brigadier.
  • cliutils/cli11CLIUtils avatar

    CLIUtils/CLI11

    4,322View on GitHub↗

    CLI11 is a header-only C++ library for parsing command line arguments and managing configuration files. It maps shell input to typed variables and supports the creation of complex command hierarchies. The library is distinguished by its support for nested subcommands with infinite depth and prefix matching. It integrates configuration management by allowing application settings to be loaded from TOML or INI files, with the ability to fall back to environment variables. The project provides a comprehensive set of tools for argument parsing, including flags and positional arguments, alongside

    C++clicli-parsercpp11
    View on GitHub↗4,322
  • remkop/picocliremkop avatar

    remkop/picocli

    5,387View on GitHub↗

    picocli is a command line interface development framework and argument parser for JVM-based applications. It maps command line options and positional parameters to strongly typed Java methods and fields using a declarative, annotation-based model. The framework provides specific support for native image compilation, producing the reflection and resource configuration files necessary to build standalone binaries with reduced startup overhead. It further distinguishes itself with a dedicated system for generating shell autocompletion scripts and an ANSI terminal stylizer for applying colors and

    Java
    View on GitHub↗5,387
  • commandlineparser/commandlinecommandlineparser avatar

    commandlineparser/commandline

    4,817View on GitHub↗

    This library is a .NET command line parser for C# and F# that implements POSIX getopt conventions to map shell arguments into strongly typed objects. It provides a framework for building console applications that process Unix-style flags and options. The project features a routing system that directs program execution based on action-oriented verbs, supporting sub-commands and default actions. It includes an automatic help generator that produces localized usage instructions and formatted help screens based on the defined command options. The toolset covers argument parsing with strongly typ

    C#command-linedotnetdotnet-core
    View on GitHub↗4,817
  • sindresorhus/meowsindresorhus avatar

    sindresorhus/meow

    3,708View on GitHub↗

    Meow is a Node.js command line argument parser that converts raw input strings into structured objects. It functions as a tool for processing flags and positional arguments according to POSIX and shell conventions. The library provides a system for enforcing required arguments and verifying data types for command line inputs. It also serves as a helper for managing version strings, help menus, and subcommand routing within terminal applications. The project covers the broader surface of command line interface development, including input validation and the direction of execution paths via ke

    JavaScriptclicommand-linejavascript
    View on GitHub↗3,708
See all 30 alternatives to Brigadier→

Frequently asked questions

What does mojang/brigadier do?

Brigadier is a command-line parser and dispatcher that maps text-based inputs to executable functions using a hierarchical tree of arguments. It provides a system for defining nested command structures and typed arguments to route user input to specific handlers.

What are the main features of mojang/brigadier?

The main features of mojang/brigadier are: Command Tree Definitions, Command Line Parsers, Hierarchical Command Dispatch, Command Line Parsing, CLI Command Dispatchers, Argument Parsing, Nested Command Structures, Command Line Argument Parsing.

What are some open-source alternatives to mojang/brigadier?

Open-source alternatives to mojang/brigadier include: cliutils/cli11 — CLI11 is a header-only C++ library for parsing command line arguments and managing configuration files. It maps shell… remkop/picocli — picocli is a command line interface development framework and argument parser for JVM-based applications. It maps… commandlineparser/commandline — This library is a .NET command line parser for C# and F# that implements POSIX getopt conventions to map shell… sindresorhus/meow — Meow is a Node.js command line argument parser that converts raw input strings into structured objects. It functions… apple/swift-argument-parser — This is a library for building command-line interfaces in Swift. It converts command-line arguments into type-safe… aikar/commands — This project is a Java command dispatch framework that maps user input to application logic using annotation-based…