aws_encryption_sdk_cli.internal.arg_parsing

Helper functions for parsing and processing input arguments.

Functions

discovery_pseudobool(value)

Translates an input value in various 'truthy' or 'falsy' forms into a boolean.

parse_args([raw_args])

Handles argparse to collect the needed input values.

Classes

CommentIgnoringArgumentParser(*args, **kwargs)

ArgumentParser that ignores lines in fromfile_prefix_chars files which start with #.

CommitmentPolicyArgs(value)

Defines the possible values for a commitment policy

UniqueStoreAction(option_strings, dest[, ...])

argparse action that requires that arguments cannot be repeated.

aws_encryption_sdk_cli.internal.arg_parsing.parse_args(raw_args: Optional[List[str]] = None) Namespace

Handles argparse to collect the needed input values.

Parameters

raw_args (list) – List of arguments

Returns

parsed arguments

Return type

argparse.Namespace