cangjie-entry-args

Parse command-line arguments in Cangjie programs using std.argopt.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-entry-args
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-entry-args
Source: https://github.com/SunriseSummer/CangjieDocValidator/tree/main/.github/skills/entry_args
Command: npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-entry-args

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the process of handling command-line arguments in Cangjie programs, enabling the creation of robust and user-friendly command-line interfaces (CLIs).

Core Features & Use Cases

  • Argument Handling: Learn how the main function receives raw arguments.
  • Structured Parsing: Utilize the std.argopt package for sophisticated parsing of short options, long options, combined options, and non-option arguments.
  • Use Case: Develop a CLI tool that accepts various flags like --verbose, -o <output_file>, and --config <path>, while also processing input file paths.

Quick Start

Use the cangjie-entry-args skill to parse command-line arguments for a Cangjie program, defining short and long options with required values.

Frequently Asked Questions about cangjie-entry-args

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse command-line arguments in a Cangjie program?

To parse command-line arguments in Cangjie, use the `std.argopt` package within the `main` function to define argument specifications and process raw inputs like short, long, and combined options.

Can I define required and optional values for Cangjie CLI options?

Yes, Cangjie CLI options support required and optional values. Using the `std.argopt` package, developers can define argument specifications with modes like NoValue, RequiredValue, and OptionalValue for flexible parsing.

What's the best way to handle short and long options in Cangjie CLI tools?

The best way to handle short and long options in Cangjie CLI tools is by utilizing the `std.argopt` package, which provides structured parsing for combined options, flags like `--verbose`, and non-option arguments.

How does the main function receive raw arguments in Cangjie?

The `main` function in Cangjie receives raw arguments directly, which can then be passed to the `std.argopt` package for structured argument parsing and exception handling during CLI tool development.

How do I handle argument parsing exceptions for Cangjie command line tools?

To handle argument parsing exceptions in Cangjie command line tools, the `std.argopt` package processes raw arguments against defined specifications, allowing developers to catch and manage parsing errors for robust CLI interfaces.

Does the cangjie-entry-args Skill support processing non-option arguments like file paths?

Yes, the Skill supports processing non-option arguments. While using `std.argopt` to parse flags and options, developers can simultaneously extract and handle non-option arguments such as input file paths.