« Previous | Next » 

Revision b113e74b

IDb113e74b84e718e828b3395cfe522ab86a7c0014

Added by Stavros Sachtouris about 9 years ago

Modify getitem semantics

Not getitem of cli.commands does return arg.value
- to set:
mycmd['argname'] = Argument(…)
or
mycmd.argument['argname'] = Argument(…)
- to get Argument object:
mycmd.get_argument_object('argname')
or
mycmd.argument['argname']
- to get Argument value:
mycmd['argname']
or
mycmd['argname'].get_argument('argname') //bw comp.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences