Skip to content

Standardize argparse help messages#2847

Merged
tgamblin merged 1 commit intospack:developfrom
adamjstewart:features/standard-help
Jan 26, 2017
Merged

Standardize argparse help messages#2847
tgamblin merged 1 commit intospack:developfrom
adamjstewart:features/standard-help

Conversation

@adamjstewart
Copy link
Copy Markdown
Member

If your run spack help on any particular command, you'll notice that some options start with a lowercase letter and end with a period, while others start with a capital letter and don't end with a period. This was really messing with my OCD, so I fixed it.

I decided to standardize on starting with a lowercase letter and not ending with a period. Why? Because argparse automatically adds the -h / --help option to every command, and that's what it uses. Yes, we could hack this if we really want to, but I don't see any reason to.

Copy link
Copy Markdown
Member

@becker33 becker33 left a comment

Choose a reason for hiding this comment

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

3 thoughts:
1: The help string for uninstall -a uses full sentences, and maybe should be formatted as such.
2: In general, I'm slightly opposed to using . to delimit sentences if we are not going to use capital letters to start them.
3: We need to update the description of the spec expression syntax at the top of spack -h. This can be a separate PR.

@adamjstewart
Copy link
Copy Markdown
Member Author

@becker33 Agreed. Some of the help messages are fairly long. Perhaps we could shorten them? If we don't, would it make sense to try to reword them or separate sentences with commas or semicolons?

@tgamblin tgamblin merged commit 6158115 into spack:develop Jan 26, 2017
@adamjstewart adamjstewart deleted the features/standard-help branch January 30, 2017 20:32
@adamjstewart adamjstewart mentioned this pull request May 8, 2017
8 tasks
diaena pushed a commit to diaena/spack that referenced this pull request May 26, 2017
amklinv pushed a commit that referenced this pull request Jul 17, 2017
healther pushed a commit to electronicvisions/spack that referenced this pull request Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants