/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: Canonical.com Patch Queue Manager
  • Date: 2007-09-03 07:34:25 UTC
  • mfrom: (2779.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070903073425-ouk9qod51gqk18nn
(Ian Clatworthy) Verbosity levels and 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").
244
 
 
245
 
--quiet        Suppress informational output; only print errors and warnings.
246
 
--version      Print the version number.
247
 
 
 
243
command.  (e.g. "bzr --profile help").
 
244
 
 
245
--version      Print the version number. Must be supplied before the command.
248
246
--no-aliases   Do not process command aliases when running this command.
249
247
--builtin      Use the built-in version of a command, not the plugin version.
250
248
               This does not suppress other plugin effects.
251
249
--no-plugins   Do not process any plugins.
252
250
 
253
 
-Devil         Capture call sites that do expensive or badly-scaling
254
 
               operations.
255
 
-Derror        Instead of normal error handling, always print a traceback on
256
 
               error.
257
 
-Dhooks        Trace hook execution.
258
 
-Dhpss         Trace smart protocol requests and responses.
259
 
-Dindex        Trace major index operations.
260
 
-Dlock         Trace when lockdir locks are taken or released.
261
251
--profile      Profile execution using the hotshot profiler.
262
252
--lsprof       Profile execution using the lsprof profiler.
263
253
--lsprof-file  Profile execution using the lsprof profiler, and write the
268
258
               will be a pickle.
269
259
 
270
260
See doc/developers/profiling.txt for more information on profiling.
271
 
 
272
 
Note: --version must be supplied before any command.
273
 
"""
 
261
A number of debug flags are also available to assist troubleshooting and
 
262
development.
 
263
 
 
264
-Derror        Instead of normal error handling, always print a traceback on
 
265
               error.
 
266
-Devil         Capture call sites that do expensive or badly-scaling
 
267
               operations.
 
268
-Dhooks        Trace hook execution.
 
269
-Dhpss         Trace smart protocol requests and responses.
 
270
-Dindex        Trace major index operations.
 
271
-Dlock         Trace when lockdir locks are taken or released.
 
272
"""
 
273
 
 
274
_standard_options = \
 
275
"""Standard Options
 
276
 
 
277
Standard options are legal for all commands.
 
278
      
 
279
--help, -h     Show help message.
 
280
--verbose, -v  Display more information.
 
281
--quiet, -q    Only display errors and warnings.
 
282
 
 
283
Unlike global options, standard options can be used in aliases.
 
284
"""
 
285
 
274
286
 
275
287
_checkouts = \
276
288
"""Checkouts
512
524
    from bzrlib import bzrdir
513
525
    return "Storage Formats\n\n" + bzrdir.format_registry.help_topic(topic)
514
526
topic_registry.register('formats', get_format_topic, 'Directory formats')
 
527
topic_registry.register('standard-options', _standard_options,
 
528
                        'Options that can be used with any command')
515
529
topic_registry.register('global-options', _global_options,
516
 
                        'Options that can be used with any command')
 
530
                    'Options that control how Bazaar runs')
517
531
topic_registry.register('checkouts', _checkouts,
518
532
                        'Information on what a checkout is', SECT_CONCEPT)
519
533
topic_registry.register('urlspec', _help_on_transport,