Skip to content

Instantly share code, notes, and snippets.

@198d
Last active December 19, 2015 13:09
Show Gist options
  • Save 198d/5959641 to your computer and use it in GitHub Desktop.
Save 198d/5959641 to your computer and use it in GitHub Desktop.
def command(foo, bar, baz=10):
pass
parser = argparse.ArgumentParser()
parser.add_argument('foo')
parser.add_argument('bar')
parser.add_argument('--baz', default=10)
def command(foo, bar, baz):
pass
def another_command(foo='bar', baz='foo'):
pass
main = Sly(command, another_command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment