ats_utilities.option.command_option module

Module

command_option.py

Copyright

Copyright (C) 2017 - 2026 Vladimir Roncevic <elektron.ronca@gmail.com> ats_utilities is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ats_utilities is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Info

Defines class CommandOption with attributes.

class ats_utilities.option.command_option.CommandOption(name: str, help_text: str, default: Any = None, required: bool = False, choices: list[Any] | None = None)[source]

Bases: object

Defines class CommandOption with attribute(s) and method(s).

It defines:

attributes:
name - The name of the option.
help_text - The help description.
default - Default value (default None).
required - Is this option required (default False).
choices - List of possible choices (default None).
methods:

None