cangjie-entry-args

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

2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill cangjie-entry-args-zhenzhizhi12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-entry-args
Source: https://github.com/zhenzhizhi12/NexusAgent/tree/main/.opencode/skills/common-skill-l1/entry_args
Command: npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill cangjie-entry-args-zhenzhizhi12

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the process of handling command-line arguments in Cangjie programs, making it easier to build robust and user-friendly command-line tools.

Core Features & Use Cases

  • main Function Arguments: Understand how to receive raw command-line arguments in your Cangjie main function.
  • std.argopt Parsing: Utilize the std.argopt package for structured parsing of short options, long options, combined options, and non-option arguments.
  • CLI Tool Development: Develop command-line interfaces for your Cangjie applications with support for flags, required/optional values, and custom callbacks.
  • Use Case: You are developing a new Cangjie CLI tool that needs to accept input files, an output directory, and a verbose flag. This Skill will guide you on how to define and parse these arguments effectively.

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 your `main` function to define short and long options, specify required or optional values, and handle non-option arguments effectively.

What is the best way to define required and optional CLI values in Cangjie?

Defining required and optional CLI values in Cangjie involves using the `std.argopt` package to create argument specifications that support flags, custom callbacks, and structured parsing for command-line interfaces.

How does the Cangjie `main` function receive raw command-line arguments?

The `main` function in Cangjie receives raw command-line arguments directly as input, which can then be passed to the `std.argopt` package for structured parsing into short options, long options, or non-option arguments.

Can I use `std.argopt` to build a CLI tool with combined short options?

Yes, you can use `std.argopt` to build a Cangjie CLI tool that supports combined short options, long options, and non-option arguments, making it suitable for processing input files, output directories, and verbose flags.

How do I handle parsing errors when developing command-line tools in Cangjie?

Handling parsing errors when developing command-line tools in Cangjie involves utilizing the error handling capabilities of the `std.argopt` package to manage invalid inputs and ensure robust CLI application behavior.