Repository: aws/aws-cli

Issue:
aws help does not work
Hi,

I've just installed aws-cli using pip on a Ubuntu 13.04 amd64 and I'm unable to use the help command. I got the following errors:

```
$ aws ec2 help
[Errno 2] No such file or directory
grotty:<standard input>:2883:fatal error: output error
```



Discussion:
Thanks for letting us know.  Could you answer these questions:
- Are you able to see other man pages (does something like `man bash` work for you)?
- What is the value for your env var "$PAGER"
- Can you provide the `aws ec2 help --debug`.

1) Yes, `man bash` works
2) No `PAGER` env var. However I have the `MANPAGER` variable with `less -X`
3) Sure:

```
2013-08-20 19:46:13,660 - botocore.service - DEBUG - Creating service object for: ec2
2013-08-20 19:46:13,661 - botocore.base - DEBUG - Attempting to load: aws/ec2
2013-08-20 19:46:13,729 - botocore.base - DEBUG - Found data file: /usr/local/lib/python2.7/dist-packages/botocore/data/aws/ec2.json
2013-08-20 19:46:13,729 - botocore.hooks - DEBUG - Event service-created: calling handler <function register_retries_for_service at 0x2289050>
2013-08-20 19:46:13,729 - botocore.handlers - DEBUG - Registering retry handlers for service: Service(ec2)
2013-08-20 19:46:13,730 - botocore.service - DEBUG - Creating operation objects for: Service(ec2)
2013-08-20 19:46:13,740 - botocore.hooks - DEBUG - Event building-command-table.ec2: calling handler <functools.partial object at 0x25778e8>
2013-08-20 19:46:13,740 - awscli.customizations.removals - DEBUG - Removing operation: import-instance
2013-08-20 19:46:13,740 - awscli.customizations.removals - DEBUG - Removing operation: import-volume
2013-08-20 19:46:13,740 - botocore.hooks - DEBUG - Event doc-title.Service.ec2: calling handler <bound method ServiceDocumentEventHandler.doc_title of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,741 - botocore.hooks - DEBUG - Event doc-description.Service.ec2: calling handler <bound method ServiceDocumentEventHandler.doc_description of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,741 - botocore.hooks - DEBUG - Event doc-subitems-start.Service.ec2: calling handler <bound method ServiceDocumentEventHandler.doc_subitems_start of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,741 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.activate-license: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,741 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.allocate-address: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,741 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.assign-private-ip-addresses: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,741 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.associate-address: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,741 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.associate-dhcp-options: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.associate-route-table: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.attach-internet-gateway: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.attach-network-interface: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.attach-volume: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.attach-vpn-gateway: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.authorize-security-group-egress: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.authorize-security-group-ingress: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.bundle-instance: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.cancel-bundle-task: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.cancel-conversion-task: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.cancel-export-task: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.cancel-reserved-instances-listing: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.cancel-spot-instance-requests: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,742 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.confirm-product-instance: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.copy-image: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.copy-snapshot: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-customer-gateway: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-dhcp-options: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-image: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-instance-export-task: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-internet-gateway: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-key-pair: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-network-acl: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-network-acl-entry: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-network-interface: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-placement-group: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-reserved-instances-listing: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,743 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-route: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-route-table: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-security-group: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-snapshot: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-spot-datafeed-subscription: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-subnet: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-tags: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-volume: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-vpc: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-vpn-connection: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-vpn-connection-route: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.create-vpn-gateway: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.deactivate-license: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,744 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-customer-gateway: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-dhcp-options: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-internet-gateway: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-key-pair: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-network-acl: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-network-acl-entry: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-network-interface: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-placement-group: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-route: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-route-table: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-security-group: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-snapshot: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-spot-datafeed-subscription: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-subnet: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,745 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-tags: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-volume: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-vpc: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-vpn-connection: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-vpn-connection-route: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.delete-vpn-gateway: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.deregister-image: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-account-attributes: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-addresses: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-availability-zones: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-bundle-tasks: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-conversion-tasks: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-customer-gateways: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-dhcp-options: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-export-tasks: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,746 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-image-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-images: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-instance-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-instance-status: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-instances: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-internet-gateways: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-key-pairs: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-licenses: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-network-acls: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-network-interface-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-network-interfaces: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-placement-groups: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-regions: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,747 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-reserved-instances: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-reserved-instances-listings: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-reserved-instances-offerings: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-route-tables: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-security-groups: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-snapshot-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-snapshots: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-spot-datafeed-subscription: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-spot-instance-requests: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-spot-price-history: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-subnets: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-tags: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-volume-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-volume-status: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,748 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-volumes: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-vpc-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-vpcs: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-vpn-connections: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.describe-vpn-gateways: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.detach-internet-gateway: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.detach-network-interface: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.detach-volume: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.detach-vpn-gateway: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.disable-vgw-route-propagation: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.disassociate-address: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.disassociate-route-table: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.enable-vgw-route-propagation: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.enable-volume-io: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,749 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.get-console-output: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.get-password-data: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.import-key-pair: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.modify-image-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.modify-instance-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.modify-network-interface-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.modify-snapshot-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.modify-volume-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.modify-vpc-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.monitor-instances: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.purchase-reserved-instances-offering: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.reboot-instances: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.register-image: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.release-address: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,750 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.replace-network-acl-association: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,751 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.replace-network-acl-entry: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,751 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.replace-route: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,752 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.replace-route-table-association: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,752 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.report-instance-status: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,752 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.request-spot-instances: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,752 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.reset-image-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,752 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.reset-instance-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,752 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.reset-network-interface-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,752 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.reset-snapshot-attribute: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,752 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.revoke-security-group-egress: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,752 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.revoke-security-group-ingress: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,753 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.run-instances: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,753 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.start-instances: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,753 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.stop-instances: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,753 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.terminate-instances: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,753 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.unassign-private-ip-addresses: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,753 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.unmonitor-instances: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,753 - botocore.hooks - DEBUG - Event doc-subitem.Service.ec2.help: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <bcdoc.clidocs.ServiceDocumentEventHandler object at 0x2e49f90>>
2013-08-20 19:46:13,753 - awscli.help - DEBUG - Running command: ['rst2man.py']
2013-08-20 19:46:13,756 - awscli.help - DEBUG - Running command: ['groff', '-man', '-T', 'ascii']
2013-08-20 19:46:13,760 - awscli.help - DEBUG - Running command: ['less -X']
2013-08-20 19:46:13,763 - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 178, in main
    return command_table[parsed_args.command](remaining, parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 271, in __call__
    return command_table[parsed_args.operation](remaining, parsed_globals)
  File "/usr/local/lib/python2.7/dist-packages/awscli/help.py", line 200, in __call__
    self.renderer.render(self.doc.getvalue())
  File "/usr/local/lib/python2.7/dist-packages/awscli/help.py", line 78, in render
    p4 = Popen(cmdline, stdin=p3.stdout)
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
2013-08-20 19:46:13,763 - awscli.clidriver - DEBUG - Exiting with rc 255
[Errno 2] No such file or directory
grotty:<standard input>:2883:fatal error: output error
```

Could you try unsetting the MANPAGER environment variable?

Sure. By unsetting `MANPAGER` `aws-cli help` worked. Thanks.

Thanks.  It is a bug in our code.  We are not properly handling PAGER or MANPAGER values that specify options to the command.  We will fix that.  Thanks for the report.

Thank you again!


Resolving patch:
diff --git a/awscli/help.py b/awscli/help.py
--- a/awscli/help.py
+++ b/awscli/help.py
@@ -66,13 +66,13 @@ class PosixHelpRenderer(HelpRenderer):
 
     PAGER = 'more'
 
-    def get_pager(self):
+    def get_pager_cmdline(self):
         pager = self.PAGER
         if 'MANPAGER' in os.environ:
             pager = os.environ['MANPAGER']
         elif 'PAGER' in os.environ:
             pager = os.environ['PAGER']
-        return pager
+        return pager.split()
 
     def render(self, contents):
         cmdline = ['rst2man.py']
@@ -83,8 +83,7 @@ def render(self, contents):
         cmdline = ['groff', '-man', '-T', 'ascii']
         LOG.debug("Running command: %s", cmdline)
         p3 = Popen(cmdline, stdin=p2.stdout, stdout=PIPE)
-        pager = self.get_pager()
-        cmdline = [pager]
+        cmdline = self.get_pager_cmdline()
         LOG.debug("Running command: %s", cmdline)
         p4 = Popen(cmdline, stdin=p3.stdout)
         p4.communicate()
@@ -200,7 +199,6 @@ def __call__(self, args, parsed_globals):
         self.renderer.render(self.doc.getvalue())
 
 
-
 class ProviderHelpCommand(HelpCommand):
     """Implements top level help command.
 
@@ -217,7 +215,6 @@ def __init__(self, session, command_table, arg_table,
         self.synopsis = synopsis
         self.help_usage = usage
 
-
     @property
     def event_class(self):
         return 'Provider'


Test patch:
diff --git a/tests/unit/test_help.py b/tests/unit/test_help.py
--- a/tests/unit/test_help.py
+++ b/tests/unit/test_help.py
@@ -14,7 +14,6 @@
 import os
 
 from awscli.help import PosixHelpRenderer
-from awscli.clidriver import CLIDriver
 
 
 class TestHelpPager(unittest.TestCase):
@@ -35,23 +34,44 @@ def test_no_env_vars(self):
             del os.environ['PAGER']
         if 'MANPAGER' in os.environ:
             del os.environ['MANPAGER']
-        self.assertEqual(self.renderer.get_pager(), self.renderer.PAGER)
+        self.assertEqual(self.renderer.get_pager_cmdline(),
+                         self.renderer.PAGER.split())
 
     def test_manpager(self):
+        pager_cmd = 'foobar'
         if 'PAGER' in os.environ:
             del os.environ['PAGER']
-        os.environ['MANPAGER'] = 'foobar'
-        self.assertEqual(self.renderer.get_pager(), 'foobar')
+        os.environ['MANPAGER'] = pager_cmd
+        self.assertEqual(self.renderer.get_pager_cmdline(),
+                         pager_cmd.split())
 
     def test_pager(self):
+        pager_cmd = 'fiebaz'
         if 'MANPAGER' in os.environ:
             del os.environ['MANPAGER']
-        os.environ['PAGER'] = 'fiebaz'
-        self.assertEqual(self.renderer.get_pager(), 'fiebaz')
+        os.environ['PAGER'] = pager_cmd
+        self.assertEqual(self.renderer.get_pager_cmdline(),
+                         pager_cmd.split())
 
     def test_both(self):
         os.environ['MANPAGER'] = 'foobar'
         os.environ['PAGER'] = 'fiebaz'
-        self.assertEqual(self.renderer.get_pager(), 'foobar')
+        self.assertEqual(self.renderer.get_pager_cmdline(),
+                         'foobar'.split())
 
+    def test_manpager_with_args(self):
+        pager_cmd = 'less -X'
+        if 'PAGER' in os.environ:
+            del os.environ['PAGER']
+        os.environ['MANPAGER'] = pager_cmd
+        self.assertEqual(self.renderer.get_pager_cmdline(),
+                         pager_cmd.split())
 
+    def test_pager_with_args(self):
+        pager_cmd = 'less -X --clearscreen'
+        if 'MANPAGER' in os.environ:
+            del os.environ['MANPAGER']
+        os.environ['PAGER'] = pager_cmd
+        self.assertEqual(self.renderer.get_pager_cmdline(),
+                         pager_cmd.split())
+