/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/help_topics.py

  • Committer: Ian Clatworthy
  • Date: 2007-08-30 06:07:51 UTC
  • mto: (2779.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2783.
  • Revision ID: ian.clatworthy@internode.on.net-20070830060751-bsphtblostbmheh4
Document standard options

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
"""Global Options
241
241
 
242
242
These options may be used with any command, and may appear in front of any
243
 
command.  (e.g. "bzr --quiet help").
 
243
command.  (e.g. "bzr --profile help").
244
244
 
245
 
--quiet        Suppress informational output; only print errors and warnings.
246
245
--version      Print the version number.
247
246
 
248
247
--no-aliases   Do not process command aliases when running this command.
258
257
-Dhpss         Trace smart protocol requests and responses.
259
258
-Dindex        Trace major index operations.
260
259
-Dlock         Trace when lockdir locks are taken or released.
 
260
 
261
261
--profile      Profile execution using the hotshot profiler.
262
262
--lsprof       Profile execution using the lsprof profiler.
263
263
--lsprof-file  Profile execution using the lsprof profiler, and write the
272
272
Note: --version must be supplied before any command.
273
273
"""
274
274
 
 
275
_standard_options = \
 
276
"""Standard Options
 
277
 
 
278
Standard options are legal for all commands.
 
279
      
 
280
--help, -h     Show help message.
 
281
-v, --verbose  Display more information.
 
282
-q, --quiet    Only display errors and warnings.
 
283
 
 
284
Unlike global options, standard options can be used in aliases and
 
285
may have more explicit help on a per command basis.
 
286
"""
 
287
 
 
288
 
275
289
_checkouts = \
276
290
"""Checkouts
277
291
 
512
526
    from bzrlib import bzrdir
513
527
    return "Storage Formats\n\n" + bzrdir.format_registry.help_topic(topic)
514
528
topic_registry.register('formats', get_format_topic, 'Directory formats')
 
529
topic_registry.register('standard-options', _standard_options,
 
530
                        'Options that can be used with any command')
515
531
topic_registry.register('global-options', _global_options,
516
 
                        'Options that can be used with any command')
 
532
                        'Options that are applied before command are processed')
517
533
topic_registry.register('checkouts', _checkouts,
518
534
                        'Information on what a checkout is', SECT_CONCEPT)
519
535
topic_registry.register('urlspec', _help_on_transport,