Galaxie Shell 0.2.6 documentation


Navigation:   | Index   | Search   | Top   | Up   | Prev   | Next   |
Table of Content: |glxshell.lib.argparse package |Submodules |Module contents |ArgumentParser |ArgumentParser.add_argument() |ArgumentParser.error() |ArgumentParser.format_help() |ArgumentParser.format_usage() |ArgumentParser.parse_args() |ArgumentParser.parse_known_args() |ArgumentParser.print_help() |ArgumentParser.print_usage() |ArgumentParser.render_arg() |FileType |WrapperCmdLineArgParser |

© Copyright 2020-2024, Galaxie Shell Team.

Top » glxshell » glxshell package » glxshell.lib package » glxshell.lib.argparse package

glxshell.lib.argparse package

Submodules

Module contents

class glxshell.lib.argparse.ArgumentParser(**kwargs)[source]

Bases: UtilityDescription

add_argument(*args, **kwargs)[source]
static error(msg)[source]
format_help(columns)[source]
format_usage()[source]
parse_args(args=None, namespace=None)[source]
parse_known_args(args=None, namespace=None)[source]
print_help(columns=None)[source]
print_usage()[source]
static render_arg(arg)[source]
class glxshell.lib.argparse.FileType(mode='r', bufsize=-1, encoding=None, errors=None)[source]

Bases: object

Factory for creating file object types

Instances of FileType are typically passed as type= arguments to the ArgumentParser add_argument() method.

Keyword Arguments:
  • mode – A string indicating how the file is to be opened. Accepts the

    same values as the builtin open() function.

  • bufsize – The file’s desired buffer size. Accepts the same values as

    the builtin open() function.

  • encoding – The file’s encoding. Accepts the same values as the

    builtin open() function.

  • errors – A string indicating how encoding and decoding errors are to

    be handled. Accepts the same value as the builtin open() function.

class glxshell.lib.argparse.WrapperCmdLineArgParser(parser)[source]

Bases: object

Top » glxshell » glxshell package » glxshell.lib package » glxshell.lib.argparse package

© Copyright 2020-2024, Galaxie Shell Team.
This page is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License (CC BY-NC-SA 4.0).
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

Last updated on None.
Created using Sphinx 8.0.2.