Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Is it possible to create options with conditional parameters with help generation like in linux tail?

Open
#952 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp
Domain
cli

Research direction

Start by tracing the option-definition and automatic help-generation APIs, then compare how they represent short and long aliases. Check whether an option can distinguish an absent argument from an explicitly supplied name or descriptor. Done means conditional parameters are supported, with help output matching the requested tail-style syntax, or the limitation is documented.

Written by the indexing model from the issue text.

Description

In linux tail option -f and --follow are distinct in that former do not allow to set any values, but latter allow to set name or descriptor values.

  -f, --follow[={name|descriptor}]
                           output appended data as the file grows;
                             an absent option argument means 'descriptor'

Is it possible to define options class to allow that with automatic help generation accordingly?
If it is not possible to generate help, is it possible to just create options to allow the distinction?

Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from commandlineparser/commandline

All issues in commandlineparser/commandline

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.