#33657: Custom command help formatting destroyed
-------------------------------------+-------------------------------------
               Reporter:  James Pic  |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Core       |        Version:  4.0
  (Management commands)              |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 With code like:

 {{{
 class Command(BaseCommand):
     help = '''
     Import a contract from tzkt.

     Example usage:

         ./manage.py tzkt_import 'Tezos Mainnet'
 KT1HTDtMBRCKoNHjfWEEvXneGQpCfPAt6BRe
     '''
 }}}

 Help output is:


 {{{
 $ ./manage.py help tzkt_import
 usage: manage.py tzkt_import [-h] [--api API] [--version] [-v {0,1,2,3}]
 [--settings SETTINGS]
                              [--pythonpath PYTHONPATH] [--traceback]
 [--no-color] [--force-color]
                              [--skip-checks]
                              blockchain target

 Import a contract from tzkt Example usage: ./manage.py tzkt_import 'Tezos
 Mainnet'
 KT1HTDtMBRCKoNHjfWEEvXneGQpCfPAt6BRe

 positional arguments:
   blockchain            Name of the blockchain to import into
   target                Id of the contract to import

 }}}

 When that was expected:

 {{{
 $ ./manage.py help tzkt_import
 usage: manage.py tzkt_import [-h] [--api API] [--version] [-v {0,1,2,3}]
 [--settings SETTINGS]
                              [--pythonpath PYTHONPATH] [--traceback]
 [--no-color] [--force-color]
                              [--skip-checks]
                              blockchain target

 Import a contract from tzkt

 Example usage:

     ./manage.py tzkt_import 'Tezos Mainnet'
 KT1HTDtMBRCKoNHjfWEEvXneGQpCfPAt6BRe


 positional arguments:
   blockchain            Name of the blockchain to import into
   target                Id of the contract to import
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33657>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070180525b9ba3-688d8a5e-a70f-4c72-852e-5121685e2817-000000%40eu-central-1.amazonses.com.

Reply via email to