跳转到主要内容

awshelp 将参数传递给 `aws`,除非存在 `-h` 或 `--help`。

项目描述

pre-commit.ci status

awshelp

awshelp 将参数传递给 aws,除非存在 -h--help

安装 + 设置

pip install awshelp
alias aws=awshelp

动机

我已经厌倦了

awscli 1.x

$ aws s3 --help

Unknown options: --help

awscli 2.x

$ aws s3 --help
usage: aws [-h] [--profile PROFILE] [--debug]

optional arguments:
  -h, --help         show this help message and exit
  --profile PROFILE
  --debug

在行动中

$ aws s3 cp --help | head -10
awshelp: aws does not like --help, but I got you!
CP()                                                                      CP()



NAME
       cp -

DESCRIPTION
       Copies a local file or S3 object to another location locally or in S3.

即使你有参数,它也能工作!

$ aws s3 cp foo bar --help | head -10
awshelp: aws does not like --help, but I got you!
CP()                                                                      CP()



NAME
       cp -

DESCRIPTION
       Copies a local file or S3 object to another location locally or in S3.

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分布

awshelp-1.0.0.tar.gz (3.0 kB 查看哈希值)

上传时间:

构建分布

awshelp-1.0.0-py2.py3-none-any.whl (3.2 kB 查看哈希值)

上传时间: Python 2 Python 3