Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | · | 1 | ·39cbead6d091ee52b0bc6e7269c0a433·315672·doc·optional·python-cloup-doc_3.0.5-1_all.deb |
2 | ·e04fc644559526a46d35263c0cbe39b9·47740·python·optional·python3-cloup_3.0.5-1_all.deb | 2 | ·e04fc644559526a46d35263c0cbe39b9·47740·python·optional·python3-cloup_3.0.5-1_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-03-07·15:02:47.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-03-07·15:02:47.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····3728·2024-03-07·15:02:47.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····3728·2024-03-07·15:02:47.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···3117 | 3 | -rw-r--r--···0········0········0···311752·2024-03-07·15:02:47.000000·data.tar.xz |
Offset 295, 16 lines modified | Offset 295, 16 lines modified | ||
295 | to·them·by·name.</p> | 295 | to·them·by·name.</p> |
296 | </div></blockquote> | 296 | </div></blockquote> |
297 | <p>Cloup·doesn’t·force·the·Unix·convention·on·you.·<code·class="docutils·literal·notranslate"><span·class="pre">cloup.argument</span></code>·takes·an | 297 | <p>Cloup·doesn’t·force·the·Unix·convention·on·you.·<code·class="docutils·literal·notranslate"><span·class="pre">cloup.argument</span></code>·takes·an |
298 | optional·<code·class="docutils·literal·notranslate"><span·class="pre">help</span></code>·parameter.·If·you·pass·a·non-empty·string·to·at·least·one·of | 298 | optional·<code·class="docutils·literal·notranslate"><span·class="pre">help</span></code>·parameter.·If·you·pass·a·non-empty·string·to·at·least·one·of |
299 | the·arguments·of·a·command,·Cloup·will·print·a·“Positional·arguments”·section | 299 | the·arguments·of·a·command,·Cloup·will·print·a·“Positional·arguments”·section |
300 | just·below·the·command·description.</p> | 300 | just·below·the·command·description.</p> |
301 | <div·class="tabbed-set·docutils"> | 301 | <div·class="tabbed-set·docutils"> |
302 | <input·checked="checked"·id="9393f250-5f74-452f-b0a7-d062bdbf9d44"·name="894b286e-78df-4781-a595-7ea1c12c912a"·type="radio"> | ||
303 | < | 302 | <input·checked="checked"·id="8065c41e-e6f1-48a2-ad54-62dd51fc53c2"·name="b2c49026-ae08-458e-9ca1-9fd2c0a2b251"·type="radio"> |
303 | </input><label·class="tabbed-label"·for="8065c41e-e6f1-48a2-ad54-62dd51fc53c2"> | ||
304 | Code</label><div·class="tabbed-content·docutils"> | 304 | Code</label><div·class="tabbed-content·docutils"> |
305 | <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">pprint</span>·<span·class="kn">import</span>·<span·class="n">pprint</span> | 305 | <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">pprint</span>·<span·class="kn">import</span>·<span·class="n">pprint</span> |
306 | <span·class="kn">import</span>·<span·class="nn">cloup</span> | 306 | <span·class="kn">import</span>·<span·class="nn">cloup</span> |
307 | <span·class="kn">from</span>·<span·class="nn">cloup</span>·<span·class="kn">import</span>·<span·class="n">option</span><span·class="p">,</span>·<span·class="n">option_group</span> | 307 | <span·class="kn">from</span>·<span·class="nn">cloup</span>·<span·class="kn">import</span>·<span·class="n">option</span><span·class="p">,</span>·<span·class="n">option_group</span> |
308 | <span·class="nd">@cloup</span><span·class="o">.</span><span·class="n">command</span><span·class="p">()</span> | 308 | <span·class="nd">@cloup</span><span·class="o">.</span><span·class="n">command</span><span·class="p">()</span> |
309 | <span·class="nd">@cloup</span><span·class="o">.</span><span·class="n">argument</span><span·class="p">(</span><span·class="s1">'input_path'</span><span·class="p">,</span>·<span·class="n">help</span><span·class="o">=</span><span·class="s2">"Input·path"</span><span·class="p">)</span> | 309 | <span·class="nd">@cloup</span><span·class="o">.</span><span·class="n">argument</span><span·class="p">(</span><span·class="s1">'input_path'</span><span·class="p">,</span>·<span·class="n">help</span><span·class="o">=</span><span·class="s2">"Input·path"</span><span·class="p">)</span> |
Offset 319, 16 lines modified | Offset 319, 16 lines modified | ||
319 | <span·class="w">····</span><span·class="sd">"""A·test·program·for·cloup."""</span> | 319 | <span·class="w">····</span><span·class="sd">"""A·test·program·for·cloup."""</span> |
320 | ····<span·class="n">pprint</span><span·class="p">(</span><span·class="n">kwargs</span><span·class="p">,</span>·<span·class="n">indent</span><span·class="o">=</span><span·class="mi">3</span><span·class="p">)</span> | 320 | ····<span·class="n">pprint</span><span·class="p">(</span><span·class="n">kwargs</span><span·class="p">,</span>·<span·class="n">indent</span><span·class="o">=</span><span·class="mi">3</span><span·class="p">)</span> |
321 | <span·class="n">main</span><span·class="p">()</span> | 321 | <span·class="n">main</span><span·class="p">()</span> |
322 | </pre></div> | 322 | </pre></div> |
323 | </div> | 323 | </div> |
324 | </div> | 324 | </div> |
325 | <input·id="21e31e3c-03f5-43b3-b027-2094e424fc79"·name="894b286e-78df-4781-a595-7ea1c12c912a"·type="radio"> | ||
326 | < | 325 | <input·id="5979f684-dfe9-4a6d-9362-3da9e4dc0507"·name="b2c49026-ae08-458e-9ca1-9fd2c0a2b251"·type="radio"> |
326 | </input><label·class="tabbed-label"·for="5979f684-dfe9-4a6d-9362-3da9e4dc0507"> | ||
327 | Generated·help</label><div·class="tabbed-content·docutils"> | 327 | Generated·help</label><div·class="tabbed-content·docutils"> |
328 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·example·[OPTIONS]·INPUT_PATH·OUT_PATH | 328 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·example·[OPTIONS]·INPUT_PATH·OUT_PATH |
329 | ··A·test·program·for·cloup. | 329 | ··A·test·program·for·cloup. |
330 | Positional·arguments: | 330 | Positional·arguments: |
331 | ··INPUT_PATH······Input·path | 331 | ··INPUT_PATH······Input·path |
Offset 516, 16 lines modified | Offset 516, 16 lines modified | ||
516 | <li><p>the·option·description·is·always·printed·below·the·option·name,·with·an·indentation | 516 | <li><p>the·option·description·is·always·printed·below·the·option·name,·with·an·indentation |
517 | increment·of·at·least·3·spaces</p></li> | 517 | increment·of·at·least·3·spaces</p></li> |
518 | <li><p>all·definitions·are·separated·by·an·empty·line.</p></li> | 518 | <li><p>all·definitions·are·separated·by·an·empty·line.</p></li> |
519 | </ul> | 519 | </ul> |
520 | <p>The·following·tabs·compare·the·<code·class="docutils·literal·notranslate"><span·class="pre">--help</span></code>·of·the·manim·example·(“aligned”·and | 520 | <p>The·following·tabs·compare·the·<code·class="docutils·literal·notranslate"><span·class="pre">--help</span></code>·of·the·manim·example·(“aligned”·and |
521 | “non-aligned”·refer·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">align_option_groups</span></code>·argument):</p> | 521 | “non-aligned”·refer·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">align_option_groups</span></code>·argument):</p> |
522 | <div·class="tabbed-set·docutils"> | 522 | <div·class="tabbed-set·docutils"> |
523 | <input·checked="checked"·id="a9267b30-26e1-4c40-89a9-d35ba02df092"·name="0cae9eae-26be-4be5-9d50-def7719656f3"·type="radio"> | ||
524 | < | 523 | <input·checked="checked"·id="986ef5c3-7bbf-4e50-bc46-ec5f6f2943c6"·name="bdf12c63-770c-4b1c-aff3-2079d992afab"·type="radio"> |
524 | </input><label·class="tabbed-label"·for="986ef5c3-7bbf-4e50-bc46-ec5f6f2943c6"> | ||
525 | Linear·layout</label><div·class="tabbed-content·docutils"> | 525 | Linear·layout</label><div·class="tabbed-content·docutils"> |
526 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·manim·render·[OPTIONS] | 526 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·manim·render·[OPTIONS] |
527 | ····················SCRIPT_PATH | 527 | ····················SCRIPT_PATH |
528 | ····················[SCENE_NAMES]... | 528 | ····················[SCENE_NAMES]... |
529 | ··Render·some·or·all·scenes·defined·in·a·Python | 529 | ··Render·some·or·all·scenes·defined·in·a·Python |
530 | ··script. | 530 | ··script. |
Offset 555, 16 lines modified | Offset 555, 16 lines modified | ||
555 | ·····Verbosity·of·CLI·output.·Changes·ffmpeg | 555 | ·····Verbosity·of·CLI·output.·Changes·ffmpeg |
556 | ·····log·level·unless·5+. | 556 | ·····log·level·unless·5+. |
557 | [...] | 557 | [...] |
558 | </pre></div> | 558 | </pre></div> |
559 | </div> | 559 | </div> |
560 | </div> | 560 | </div> |
561 | <input·id="c58f7fca-2283-416e-83c1-c3959e0ddf35"·name="0cae9eae-26be-4be5-9d50-def7719656f3"·type="radio"> | ||
562 | < | 561 | <input·id="4b190c5b-80c1-4bbb-af74-54dc9bd7395f"·name="bdf12c63-770c-4b1c-aff3-2079d992afab"·type="radio"> |
562 | </input><label·class="tabbed-label"·for="4b190c5b-80c1-4bbb-af74-54dc9bd7395f"> | ||
563 | Standard·layout·(aligned)</label><div·class="tabbed-content·docutils"> | 563 | Standard·layout·(aligned)</label><div·class="tabbed-content·docutils"> |
564 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·manim·render·[OPTIONS] | 564 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·manim·render·[OPTIONS] |
565 | ····················SCRIPT_PATH | 565 | ····················SCRIPT_PATH |
566 | ····················[SCENE_NAMES]... | 566 | ····················[SCENE_NAMES]... |
567 | ··Render·some·or·all·scenes·defined·in·a·Python | 567 | ··Render·some·or·all·scenes·defined·in·a·Python |
568 | ··script. | 568 | ··script. |
Offset 597, 16 lines modified | Offset 597, 16 lines modified | ||
597 | ······························ffmpeg·log·level | 597 | ······························ffmpeg·log·level |
598 | ······························unless·5+. | 598 | ······························unless·5+. |
599 | [...] | 599 | [...] |
600 | </pre></div> | 600 | </pre></div> |
601 | </div> | 601 | </div> |
602 | </div> | 602 | </div> |
603 | <input·id="da865687-fd93-426d-add8-732b9d7a977d"·name="0cae9eae-26be-4be5-9d50-def7719656f3"·type="radio"> | ||
604 | < | 603 | <input·id="7c16228a-1e93-4f82-acaa-919ca178124d"·name="bdf12c63-770c-4b1c-aff3-2079d992afab"·type="radio"> |
604 | </input><label·class="tabbed-label"·for="7c16228a-1e93-4f82-acaa-919ca178124d"> | ||
605 | Standard·layout·(non-aligned)</label><div·class="tabbed-content·docutils"> | 605 | Standard·layout·(non-aligned)</label><div·class="tabbed-content·docutils"> |
606 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·manim·render·[OPTIONS] | 606 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·manim·render·[OPTIONS] |
607 | ····················SCRIPT_PATH | 607 | ····················SCRIPT_PATH |
608 | ····················[SCENE_NAMES]... | 608 | ····················[SCENE_NAMES]... |
609 | ··Render·some·or·all·scenes·defined·in·a·Python | 609 | ··Render·some·or·all·scenes·defined·in·a·Python |
610 | ··script. | 610 | ··script. |
Offset 315, 16 lines modified | Offset 315, 16 lines modified | ||
315 | a·description·of·the·constraint·will·be·shown·between·squared·brackets | 315 | a·description·of·the·constraint·will·be·shown·between·squared·brackets |
316 | aside·the·option·group·title·(or·below·it·if·too·long)</p></li> | 316 | aside·the·option·group·title·(or·below·it·if·too·long)</p></li> |
317 | <li><p><strong>hidden</strong>·– | 317 | <li><p><strong>hidden</strong>·– |
318 | if·True,·the·option·group·and·all·its·options·are·hidden·from·the·help·page | 318 | if·True,·the·option·group·and·all·its·options·are·hidden·from·the·help·page |
319 | (all·contained·options·will·have·their·hidden·attribute·set·to·True).</p></li> | 319 | (all·contained·options·will·have·their·hidden·attribute·set·to·True).</p></li> |
320 | </ul> | 320 | </ul> |
321 | <div·class="tabbed-set·docutils"> | 321 | <div·class="tabbed-set·docutils"> |
322 | <input·checked="checked"·id="7b159dab-6707-455c-831b-a4acbb848526"·name="a271b38f-a367-4a7c-9a08-f43a7f995741"·type="radio"> | ||
323 | < | 322 | <input·checked="checked"·id="6ece790c-90f0-4f7c-8e4f-e624c602cbea"·name="3607de31-bdd4-47fd-bbfb-3189ae7d1aee"·type="radio"> |
323 | </input><label·class="tabbed-label"·for="6ece790c-90f0-4f7c-8e4f-e624c602cbea"> | ||
324 | Code</label><div·class="tabbed-content·docutils"> | 324 | Code</label><div·class="tabbed-content·docutils"> |
325 | <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">cloup</span> | 325 | <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">cloup</span> |
326 | <span·class="kn">from</span>·<span·class="nn">cloup</span>·<span·class="kn">import</span>·<span·class="n">option_group</span><span·class="p">,</span>·<span·class="n">option</span> | 326 | <span·class="kn">from</span>·<span·class="nn">cloup</span>·<span·class="kn">import</span>·<span·class="n">option_group</span><span·class="p">,</span>·<span·class="n">option</span> |
327 | <span·class="kn">from</span>·<span·class="nn">cloup.constraints</span>·<span·class="kn">import</span>·<span·class="n">RequireAtLeast</span> | 327 | <span·class="kn">from</span>·<span·class="nn">cloup.constraints</span>·<span·class="kn">import</span>·<span·class="n">RequireAtLeast</span> |
328 | <span·class="nd">@cloup</span><span·class="o">.</span><span·class="n">command</span><span·class="p">()</span> | 328 | <span·class="nd">@cloup</span><span·class="o">.</span><span·class="n">command</span><span·class="p">()</span> |
329 | <span·class="nd">@option_group</span><span·class="p">(</span> | 329 | <span·class="nd">@option_group</span><span·class="p">(</span> |
Offset 348, 16 lines modified | Offset 348, 16 lines modified | ||
348 | <span·class="w">····</span><span·class="sd">"""A·CLI·that·does·nothing."""</span> | 348 | <span·class="w">····</span><span·class="sd">"""A·CLI·that·does·nothing."""</span> |
349 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="n">kwargs</span><span·class="p">)</span> | 349 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="n">kwargs</span><span·class="p">)</span> |
350 | <span·class="n">cli</span><span·class="p">()</span> | 350 | <span·class="n">cli</span><span·class="p">()</span> |
351 | </pre></div> | 351 | </pre></div> |
352 | </div> | 352 | </div> |
353 | </div> | 353 | </div> |
354 | <input·id="5e8e622a-52ae-449b-aab8-9e26e37d451f"·name="a271b38f-a367-4a7c-9a08-f43a7f995741"·type="radio"> | ||
355 | < | 354 | <input·id="1d0c77fb-767c-415f-b491-7949e2485d02"·name="3607de31-bdd4-47fd-bbfb-3189ae7d1aee"·type="radio"> |
355 | </input><label·class="tabbed-label"·for="1d0c77fb-767c-415f-b491-7949e2485d02"> | ||
356 | Generated·help</label><div·class="tabbed-content·docutils"> | 356 | Generated·help</label><div·class="tabbed-content·docutils"> |
357 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·clouptest·[OPTIONS] | 357 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·clouptest·[OPTIONS] |
358 | ··A·CLI·that·does·nothing. | 358 | ··A·CLI·that·does·nothing. |
359 | Input·options: | 359 | Input·options: |
360 | ··--one·TEXT··········1st·input·option | 360 | ··--one·TEXT··········1st·input·option |
Offset 398, 16 lines modified | Offset 398, 16 lines modified | ||
398 | <p>By·default,·all·option·group·help·sections·are·<strong>aligned</strong>,·meaning·that·they | 398 | <p>By·default,·all·option·group·help·sections·are·<strong>aligned</strong>,·meaning·that·they |
399 | share·the·same·column·widths.·Many·people·find·this·visually·pleasing·and·this | 399 | share·the·same·column·widths.·Many·people·find·this·visually·pleasing·and·this |
400 | is·also·the·default·behavior·of·<code·class="docutils·literal·notranslate"><span·class="pre">argparse</span></code>.</p> | 400 | is·also·the·default·behavior·of·<code·class="docutils·literal·notranslate"><span·class="pre">argparse</span></code>.</p> |
401 | <p>Nonetheless,·if·some·of·your·option·groups·have·shorter·options,·alignment·may | 401 | <p>Nonetheless,·if·some·of·your·option·groups·have·shorter·options,·alignment·may |
402 | result·in·a·lot·of·wasted·space·and·definitions·quite·far·from·option·names, | 402 | result·in·a·lot·of·wasted·space·and·definitions·quite·far·from·option·names, |
403 | which·is·bad·for·readability.·See·this·biased·example·to·compare·the·two·modes:</p> | 403 | which·is·bad·for·readability.·See·this·biased·example·to·compare·the·two·modes:</p> |
404 | <div·class="tabbed-set·docutils"> | 404 | <div·class="tabbed-set·docutils"> |
405 | <input·checked="checked"·id="a4b28bfb-2cda-4b86-a91c-9a6002ba43db"·name="2ecdab5d-1635-4852-af37-64d179ce6747"·type="radio"> | ||
406 | < | 405 | <input·checked="checked"·id="46d99f31-a1ad-4427-968b-5c52f13087bb"·name="f5088daf-364a-4432-8675-ce015769f1c0"·type="radio"> |
406 | </input><label·class="tabbed-label"·for="46d99f31-a1ad-4427-968b-5c52f13087bb"> | ||
407 | Aligned</label><div·class="tabbed-content·docutils"> | 407 | Aligned</label><div·class="tabbed-content·docutils"> |
408 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·clouptest·[OPTIONS] | 408 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·clouptest·[OPTIONS] |
409 | ··A·CLI·that·does·nothing. | 409 | ··A·CLI·that·does·nothing. |
410 | Input·options: | 410 | Input·options: |
411 | ··--one·TEXT···················This·description·is·more·likely·to·be·wrapped | 411 | ··--one·TEXT···················This·description·is·more·likely·to·be·wrapped |
Offset 428, 16 lines modified | Offset 428, 16 lines modified | ||
428 | Other·options: | 428 | Other·options: |
429 | ··--seven·[a|b|c|d|e|f|g|h|i]··First·uncategorized·option. | 429 | ··--seven·[a|b|c|d|e|f|g|h|i]··First·uncategorized·option. |
430 | ··--height·TEXT················Second·uncategorized·option. | 430 | ··--height·TEXT················Second·uncategorized·option. |
431 | ··--help·······················Show·this·message·and·exit. | 431 | ··--help·······················Show·this·message·and·exit. |
432 | </pre></div> | 432 | </pre></div> |
433 | </div> | 433 | </div> |
434 | </div> | 434 | </div> |
435 | <input·id="3c6b42fd-93ab-4ee0-96d9-4323c72f6be5"·name="2ecdab5d-1635-4852-af37-64d179ce6747"·type="radio"> | ||
436 | < | 435 | <input·id="a363004d-db01-418d-b30a-69403d7c74b6"·name="f5088daf-364a-4432-8675-ce015769f1c0"·type="radio"> |
436 | </input><label·class="tabbed-label"·for="a363004d-db01-418d-b30a-69403d7c74b6"> | ||
437 | Non-aligned</label><div·class="tabbed-content·docutils"> | 437 | Non-aligned</label><div·class="tabbed-content·docutils"> |
438 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·clouptest·[OPTIONS] | 438 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·clouptest·[OPTIONS] |
439 | ··A·CLI·that·does·nothing. | 439 | ··A·CLI·that·does·nothing. |
440 | Input·options: | 440 | Input·options: |
441 | ··--one·TEXT····This·description·is·more·likely·to·be·wrapped·when·aligning. | 441 | ··--one·TEXT····This·description·is·more·likely·to·be·wrapped·when·aligning. |
Offset 302, 16 lines modified | Offset 302, 16 lines modified | ||
302 | <section·id="adding-full-sections"> | 302 | <section·id="adding-full-sections"> |
303 | <h2>Adding·full·sections<a·class="headerlink"·href="#adding-full-sections"·title="Link·to·this·heading">¶</a></h2> | 303 | <h2>Adding·full·sections<a·class="headerlink"·href="#adding-full-sections"·title="Link·to·this·heading">¶</a></h2> |
304 | <p>This·is·my·favourite·way·of·structuring·my·sections. | 304 | <p>This·is·my·favourite·way·of·structuring·my·sections. |
305 | You·can·find·a·runnable·example·that·implements·part·of·the·help·of·Git | 305 | You·can·find·a·runnable·example·that·implements·part·of·the·help·of·Git |
306 | <a·class="reference·external"·href="https://github.com/janLuke/cloup/blob/master/examples/git_sections.py">here</a>. | 306 | <a·class="reference·external"·href="https://github.com/janLuke/cloup/blob/master/examples/git_sections.py">here</a>. |
307 | The·code·below·is·based·on·that·example.</p> | 307 | The·code·below·is·based·on·that·example.</p> |
308 | <div·class="tabbed-set·docutils"> | 308 | <div·class="tabbed-set·docutils"> |
309 | <input·checked="checked"·id="eb9954a2-8fd9-40e9-b3cc-05ad38af420b"·name="b2291b26-431a-4022-a950-d0dcb88cb07f"·type="radio"> | ||
310 | < | 309 | <input·checked="checked"·id="059a8e3c-92b6-4ccd-a4fc-700ddaf6157a"·name="5e7c3d65-9c35-468a-9c28-3bc457773e40"·type="radio"> |
310 | </input><label·class="tabbed-label"·for="059a8e3c-92b6-4ccd-a4fc-700ddaf6157a"> | ||
311 | Code</label><div·class="tabbed-content·docutils"> | 311 | Code</label><div·class="tabbed-content·docutils"> |
312 | <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">cloup</span> | 312 | <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">cloup</span> |
313 | <span·class="kn">from</span>·<span·class="nn">.commands</span>·<span·class="kn">import</span>·<span·class="p">(</span>··<span·class="c1">#·import·your·subcommands</span> | 313 | <span·class="kn">from</span>·<span·class="nn">.commands</span>·<span·class="kn">import</span>·<span·class="p">(</span>··<span·class="c1">#·import·your·subcommands</span> |
314 | ····<span·class="n">git_clone</span><span·class="p">,</span>·<span·class="n">git_init</span><span·class="p">,</span>·<span·class="n">git_rm</span><span·class="p">,</span>·<span·class="n">git_sparse_checkout</span><span·class="p">,</span>·<span·class="n">git_mv</span><span·class="p">,</span> | 314 | ····<span·class="n">git_clone</span><span·class="p">,</span>·<span·class="n">git_init</span><span·class="p">,</span>·<span·class="n">git_rm</span><span·class="p">,</span>·<span·class="n">git_sparse_checkout</span><span·class="p">,</span>·<span·class="n">git_mv</span><span·class="p">,</span> |
315 | ····<span·class="n">git_status</span><span·class="p">,</span>·<span·class="n">git_log</span><span·class="p">)</span> | 315 | ····<span·class="n">git_status</span><span·class="p">,</span>·<span·class="n">git_log</span><span·class="p">)</span> |
316 | <span·class="nd">@cloup</span><span·class="o">.</span><span·class="n">group</span><span·class="p">(</span><span·class="s1">'git'</span><span·class="p">)</span> | 316 | <span·class="nd">@cloup</span><span·class="o">.</span><span·class="n">group</span><span·class="p">(</span><span·class="s1">'git'</span><span·class="p">)</span> |
Offset 332, 16 lines modified | Offset 332, 16 lines modified | ||
332 | <span·class="c1">#·Subcommands·that·are·not·assigned·to·a·specific·section</span> | 332 | <span·class="c1">#·Subcommands·that·are·not·assigned·to·a·specific·section</span> |
333 | <span·class="c1">#·populate·the·"default·section"</span> | 333 | <span·class="c1">#·populate·the·"default·section"</span> |
334 | <span·class="n">git</span><span·class="o">.</span><span·class="n">add_command</span><span·class="p">(</span><span·class="n">git_status</span><span·class="p">)</span> | 334 | <span·class="n">git</span><span·class="o">.</span><span·class="n">add_command</span><span·class="p">(</span><span·class="n">git_status</span><span·class="p">)</span> |
335 | <span·class="n">git</span><span·class="o">.</span><span·class="n">add_command</span><span·class="p">(</span><span·class="n">git_log</span><span·class="p">)</span> | 335 | <span·class="n">git</span><span·class="o">.</span><span·class="n">add_command</span><span·class="p">(</span><span·class="n">git_log</span><span·class="p">)</span> |
336 | </pre></div> | 336 | </pre></div> |
337 | </div> | 337 | </div> |
338 | </div> | 338 | </div> |
339 | <input·id="e8d179df-ac35-4edf-8e56-6b530947a1bf"·name="b2291b26-431a-4022-a950-d0dcb88cb07f"·type="radio"> | ||
340 | < | 339 | <input·id="cb528b4f-598a-4f75-b5dd-ad1a42391ec9"·name="5e7c3d65-9c35-468a-9c28-3bc457773e40"·type="radio"> |
340 | </input><label·class="tabbed-label"·for="cb528b4f-598a-4f75-b5dd-ad1a42391ec9"> | ||
341 | Generated·help</label><div·class="tabbed-content·docutils"> | 341 | Generated·help</label><div·class="tabbed-content·docutils"> |
342 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·git·[OPTIONS]·COMMAND·[ARGS]... | 342 | <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Usage:·git·[OPTIONS]·COMMAND·[ARGS]... |
343 | Options: | 343 | Options: |
344 | ··--help··Show·this·message·and·exit. | 344 | ··--help··Show·this·message·and·exit. |
345 | Start·a·working·area·(see·also:·git·help·tutorial): | 345 | Start·a·working·area·(see·also:·git·help·tutorial): |