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

Merge bools #285

Merged
merged 2 commits into from
Aug 29, 2013
Merged

Merge bools #285

merged 2 commits into from
Aug 29, 2013

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Aug 29, 2013

Fixes #226.

Docs now look like how they use to:

       --disable-api-termination   |   --no-disable-api-termination  (boolean)
       Specifies whether the instance can be terminated using  the  APIs.  You
       must  modify  this  attribute  before  you  can  terminate any "locked"
       instances from the APIs.

This depends on the corresponding bcdoc changes here: boto/bcdoc#17

If you want to test this locally you'll need to pull in the above change. Note that this will also cause the travis ci builds to fail until boto/bcdoc#17 is merged.

Also unify the public attrs that were added in CLIArgs
but not added to the base class.  In general, all public
interfaces need to be defined in the base CLI class to
make it clear what subclasses need to implement.
def py_name(self):
return self._name.replace('-', '_')

@property
def name(self):
return self._name
def choices(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

As someone on the relative outside, it'd be nice to have a docstring here describing what this was for. The other properties are relatively obvious, but this one is a mystery.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will update. It essentially maps to the choices arg in argparse.ArgumentParser which is just a list of valid choice the value of the arg can be.

@toastdriven
Copy link
Contributor

LGTM.

@jamesls jamesls merged commit bc688f4 into aws:develop Aug 29, 2013
@jamesls jamesls deleted the merge-bools branch June 23, 2014 18:28
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this pull request Feb 12, 2022
Use Inspector instead of Legacy Debugger
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.

Merge boolean options in reference documentation
2 participants