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

Support case-insensitive usage #426

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dukecat0
Copy link

Refers to #43

Sample usage:

import fire

class Example(object):
  def alpha(self):
    return 'alpha'
  def Alpha(self):
    return 'Alpha'
  def Beta(self):
    return 'Beta'

if __name__=='__main__':
	fire.Fire(Example)
$ python test.py alpha
alpha
$ python test.py Alpha
Alpha
$ python test.py beta
Beta
$ python test.py BETA
NOTE: Consider using the correct capitalization for BETA
ERROR: Ambiguous member access: BETA
Usage: test.py <command>
  available commands:    Alpha | Beta | alpha

For detailed information on this command, run:
  test.py --help

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.

2 participants