cli
¶
Functions and classes for handling the CLI call.
Classes:
-
CustomHelpFormatter
–Formatter for generating usage messages and argument help strings.
Functions:
-
app
–Run the application.
-
get_args
–Get the CLI arguments.
-
show_version
–Show the application version.
CustomHelpFormatter
¶
CustomHelpFormatter(
prog: str,
indent_increment: int = 2,
max_help_position: int = 4,
width: Optional[int] = None,
**kwargs: Any,
)
Bases: RawTextHelpFormatter
Formatter for generating usage messages and argument help strings.
Only the name of this class is considered a public API. All the methods provided by the class are considered an implementation detail.
Source code in src/arx/cli.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
app
¶
app() -> None
Run the application.
Source code in src/arx/cli.py
107 108 109 110 111 112 113 114 115 116 |
|
get_args
¶
get_args() -> ArgumentParser
Get the CLI arguments.
Source code in src/arx/cli.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
|
show_version
¶
show_version() -> None
Show the application version.
Source code in src/arx/cli.py
102 103 104 |
|