llvm / llvm/llvm-project

OptTable SubCommand is not usable with positional command-line arguments

Open
#166,830 11 comments 0 reactions 1 assignee Claimed by @Prabhuk View on GitHub
llvm:support
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

https://github.com/llvm/llvm-project/pull/155026 adds the support for subcommand for llvm::OptTable.

However, the new addition cannot be used when the tool needs to have additional positional arguments. The current implementation will give up when there are more than 1 positional arguments.

Ideally, the desired behavior is that the first matching subcommand is treated as real sub-command, while the rest of the positional arguments are treated as INPUT.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.