aws / aws/aws-cli

formatting is borked when running `aws help config-vars`

Open
#6,296 6 comments 0 reactions 0 assignees Claimed by @philpennock View on GitHub
bug has-pr p2
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

Confirm by changing [ ] to [x] below to ensure that it's a bug:
- [x] I've gone though the [User Guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html) and the [API reference](https://docs.aws.amazon.com/cli/latest/reference/)
- [x] I've searched for [previous similar issues](https://github.com/aws/aws-cli/issues) and didn't find any solution

**Describe the bug**
when running `aws help config-vars`, the output of the GENERAL OPTIONS section is not formatted correctly

It looks like this:

```
GENERAL OPTIONS
The AWS CLI has a few general options:

center; |l|l|l|l|l|. _ T{ Variable T} T{ Option T} T{ Config Entry
T} T{ Environment Variable T} T{ Description T} _ T{ profile
T} T{ --profile T} T{ N/A T} T{ AWS_PROFILE T} T{ Default pro-
file name T} _ T{ region T} T{ --region T} T{ region T} T{
AWS_DEFAULT_REGION T} T{ Default AWS Region T} _ T{ output T} T{
--output T} T{ output T} T{ AWS_DEFAULT_OUTPUT T} T{ Default out-
put style T} _ T{ cli_timestamp_format T} T{ N/A T} T{ cli_time-
stamp_format T} T{ N/A T} T{ Output format of timestamps T} _ T{
cli_follow_urlparam T} T{ N/A T} T{ cli_follow_urlparam T} T{ N/A
T} T{ Fetch URL url parameters T} _ T{ ca_bundle T} T{ --ca-bundle
T} T{ ca_bundle T} T{ AWS_CA_BUNDLE T} T{ CA Certificate Bundle
T} _ T{ parameter_validation T} T{ N/A T} T{ parameter_validation
T} T{ N/A T} T{ Toggles parameter validation T} _ T{ tcp_keepalive
T} T{ N/A T} T{ tcp_keepalive T} T{ N/A T} T{ Toggles TCP
Keep-Alive T} _ T{ max_attempts T} T{ N/A T} T{ max_attempts
T} T{ AWS_MAX_ATTEMPTS T} T{ Number of total requests T} _ T{
retry_mode T} T{ N/A T} T{ retry_mode T} T{ AWS_RETRY_MODE
T} T{ Type of retries performed T} _ T{ cli_pager T} T{
--no-cli-pager T} T{ cli_pager T} T{ AWS_PAGER T} T{ Redi-
rect/Disable output to pager T} _

The third column, Config Entry, is the value you would specify in the
AWS CLI config file. By default, this location is ~/.aws/config. If
you need to change this value, you can set the AWS_CONFIG_FILE environ-
ment variable to change this location.

The valid values of the output configuration variable are:

o json

o table

o text

```

**SDK version number**

```
$ aws --version
aws-cli/2.1.25 Python/3.7.4 Darwin/20.4.0 exe/x86_64 prompt/off
```

**Platform/OS/Hardware/Device**

MacOS and ZSH

**To Reproduce (observed behavior)**

just type `aws help config-vars` and look at the output

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.