Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor README examples into a QuickStart #1665

Merged
merged 3 commits into from
Dec 27, 2021

Conversation

shadowspawn
Copy link
Collaborator

@shadowspawn shadowspawn commented Dec 26, 2021

Pull Request

Problem

We have a comprehensive README but would like new users to get a quick idea of what Commander does, whether they like the look of it, and how to start writing code.

Related: #1588

Solution

Write a brief overview of Commander supported by new single-command and multiple command examples.

The single-command example deliberately leaves out the option descriptions to show a minimal program with just the two main option types declared. The example usage shows Commander being strict, with a suggestion as a bonus!

The second example shows features common to a more complete program without going into details: help descriptions, name, version, subcommand, command-argument, default value for an option. The example usage shows the help output which is an important feature.

@shadowspawn shadowspawn added the docs README (or other docs) could be improved label Dec 26, 2021
Copy link
Collaborator

@abetomo abetomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@shadowspawn shadowspawn merged commit 4b9fee9 into tj:release/9.x Dec 27, 2021
@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Dec 27, 2021
@shadowspawn shadowspawn added this to the Commander v9.0.0 milestone Dec 27, 2021
@shadowspawn shadowspawn removed the pending release Merged into a branch for a future release, but not released yet label Jan 29, 2022
@shadowspawn shadowspawn deleted the feature/quick-start branch May 18, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs README (or other docs) could be improved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants