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

Improve the --help menu and add the --version and -v flags to the command-line interface #105

Open
wants to merge 50 commits into
base: main
Choose a base branch
from

Conversation

gkapfham
Copy link
Collaborator

@gkapfham gkapfham commented Sep 10, 2022

Improve the help menu and command-line interface

Description

Currently it is not possible to determine what version of GatorGrade you have installed through the use of either --help or the --version flags. This means that the only way you can know the version of gatorgrade that you are using is to carefully observe this information when you install it with pipx or to, alternatively, uninstall and then reinstall gatorgrade.

This is what the output now looks like when you use --help:

image

This is what the output now looks like when you use --version:

image

If you want to install and try out this version you can use this command:

pipx install git+https://github.com/GatorEducator/gatorgrade.git@feat/add-version

Linked Issues

None.

Type of Change

  • Feature
  • Bug fix
  • Documentation

Contributors

Reminder

  • All GitHub Actions should be in a passing state before any pull request is merged.
  • All PRs must be reviewed by at least one team member and one member of the Integration team!
  • Any issues this PR closes are tagged in the description!

@gkapfham gkapfham added the enhancement New feature or request label Sep 10, 2022
@gkapfham gkapfham self-assigned this Sep 10, 2022
Copy link
Contributor

@burgess01 burgess01 left a comment

Choose a reason for hiding this comment

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

Looks great! I just had one question. I saw in the versions.py file that you had functions specifically for getting the versions of gatorgrade and gatorgrader, and that these functions aren't currently in use. Especially since these don't have formatting like the others do, are you planning on using these in the future or are they just if-needed? Thanks!

@gkapfham
Copy link
Collaborator Author

Hello @burgess01, thanks for pointing out this oversight!

I'm pretty sure that those functions are no longer needed and should be removed from the code base before merging this PR.

I will review everything again on Monday and most likely remove those functions and make additional tweaks as needed.

@gkapfham gkapfham requested review from burgess01 and removed request for dluman September 19, 2022 01:55
@gkapfham
Copy link
Collaborator Author

Hi @burgess01 and @Yanqiao4396 --- this PR is now very out of date.

However, once we have repaired the build and made a release of your new feature(s), perhaps we can revisit this PR, patch it up, and then release it so that these flags are available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants