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

Add clap for CLI help #1

Closed
3 tasks done
natemcintosh opened this issue Apr 27, 2024 · 0 comments · Fixed by #8
Closed
3 tasks done

Add clap for CLI help #1

natemcintosh opened this issue Apr 27, 2024 · 0 comments · Fixed by #8
Milestone

Comments

@natemcintosh
Copy link
Owner

natemcintosh commented Apr 27, 2024

Goal

Add clap to add some CLI niceties. Print out help messages when run without any arguments (and when run with -h), and have an update command as the primary task.

Context

In a perfect world, duckup could one day be similar to rustup or juliaup in terms of the commands available. The first step on that road is just having some sort of CLI.

Required features

  • Print a help message for -h, --help, or no argument
  • Print a version number for -V or --version
  • Have an duckup update command that actually runs the update

Specifications

  • All arguments have help messages so auto-generated help works well
  • Running with no arguments also prints the help message
  • A update command that performs the update.

Out of scope

  • Any other commands beyond update, help, and version
  • Any new functionality beyond adding the CLI

Related documents

@natemcintosh natemcintosh added this to the v0.2.0 milestone Apr 27, 2024
@natemcintosh natemcintosh linked a pull request Apr 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant