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

Print --version and --help Without Bootstrapping #595

Merged
merged 5 commits into from
Feb 7, 2025

Conversation

michaelmckinsey1
Copy link
Collaborator

@michaelmckinsey1 michaelmckinsey1 commented Feb 6, 2025

Description

Addresses #592

  • check for -V or --version, print and exit
  • check for -h or --help, print and exit

Adding/modifying core functionality

  • Modify lib/main.py file

lib/main.py Outdated
Comment on lines 21 to 37
helpstr="""usage: main.py [-h] [-V] {list,tags,system,experiment,setup,unit-test,audit} ...

Benchpark

options:
-h, --help show this help message and exit
-V, --version show version number and exit

Subcommands:
{list,tags,system,experiment,setup,unit-test,audit}
list List available experiments, systems, and modifiers
tags Tags in Benchpark experiments
system Initialize a system config
experiment Interact with experiments
setup Set up an experiment and prepare it to build/run
unit-test Run benchpark unit tests
audit Look for problems in System/Experiment repos"""
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The downside is this would need to be updated manually when a new command is added

@michaelmckinsey1 michaelmckinsey1 added the bug Something isn't working label Feb 6, 2025
Michael Richard Mckinsey and others added 2 commits February 6, 2025 16:07
@michaelmckinsey1 michaelmckinsey1 marked this pull request as ready for review February 7, 2025 19:16
Copy link
Collaborator

@pearce8 pearce8 left a comment

Choose a reason for hiding this comment

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

Lint fails

@pearce8 pearce8 merged commit 9597654 into develop Feb 7, 2025
8 checks passed
@pearce8 pearce8 deleted the fix/print-version-592 branch February 7, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants