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 clarity to help menu #2802

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jackdesert
Copy link
Contributor

PR Description:

The first few times I used the --config and --creds options with archinstall, I didn't even notice that the help menu said you could use a URL instead of a local file. This PR is intended to make that just a bit more obvious.

Tests and Checks

  • I have tested the code!

Here is a screenshot of the menu options using this branch:
2024-11-14 14 43 48

parser.add_argument("--silent", action="store_true",
help="WARNING: Disables all prompts for input and confirmation. If no configuration is provided, this is ignored")
parser.add_argument("--dry-run", "--dry_run", action="store_true",
help="Generates a configuration file and then exits instead of performing an installation")
parser.add_argument("--script", default="guided", nargs="?", help="Script to run for installation", type=str)
parser.add_argument("--script", default="guided", nargs="?", help="Script to run for installation. Default: guided", type=str)
Copy link
Collaborator

Choose a reason for hiding this comment

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

use the formatter instead so it is applied for all defaults

parser = ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)

@Torxed
Copy link
Member

Torxed commented Nov 15, 2024

The note about the default formatter would be nice, other than that this looks great!

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 this pull request may close these issues.

3 participants