~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Jamie Wilkinson
  • Date: 2005-11-18 06:39:02 UTC
  • mto: (1185.33.30 bzr.dev)
  • mto: This revision was merged to the branch mainline in revision 1509.
  • Revision ID: jamie@anchor.net.au-20051118063902-a487ab27c9b0b700
add some examples to the documentation for Command.takes_args

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
        List of argument forms, marked with whether they are optional,
169
169
        repeated, etc.
170
170
 
 
171
                Examples:
 
172
 
 
173
                ['to_location', 'from_branch?', 'file*']
 
174
 
 
175
                'to_location' is required
 
176
                'from_branch' is optional
 
177
                'file' can be specified 0 or more times
 
178
 
171
179
    takes_options
172
180
        List of options that may be given for this command.  These can
173
181
        be either strings, referring to globally-defined options,