ImportOptions

class ImportOptions

Parsed arguments for the syside reqif import subcommand.

%3 ImportOptions ImportOptions syside.reqif.ImportOptions OptionsBase OptionsBase syside.reqif.OptionsBase OptionsBase->ImportOptions
Members defined in ImportOptions (4 members)

attachments_dir

RW

Directory to extract ReqIF attachments into. When None, defaults to <cwd>/ joined with syside.reqif.ATTACHMENTS_DIR at run time (--attachments-dir).

file

RW

Path to the .reqif or .reqifz file to import (positional).

resolve_duplicate_names

RW

When set, append a __<6chars> suffix derived from each colliding element’s ReqIF identifier so that duplicated names — within the top-level ReqIF namespace, between Spec Relations and that namespace, or between Spec Relations inside one Relation Group — are made unique before validation. Use this for tools like Codebeamer that require LONG_NAME on every element but do not enforce its uniqueness (--resolve-duplicate-names).

add_args

Register this subcommand’s flags onto parser.

Members inherited from OptionsBase (1 member)

from_args

RW

Build an options instance by pulling each dataclass field off args.

Attributes

attachments_dir: pathlib.Path | None = None

Directory to extract ReqIF attachments into. When None, defaults to <cwd>/ joined with syside.reqif.ATTACHMENTS_DIR at run time (--attachments-dir).

file: pathlib.Path = None

Path to the .reqif or .reqifz file to import (positional).

resolve_duplicate_names: bool = False

When set, append a __<6chars> suffix derived from each colliding element’s ReqIF identifier so that duplicated names — within the top-level ReqIF namespace, between Spec Relations and that namespace, or between Spec Relations inside one Relation Group — are made unique before validation. Use this for tools like Codebeamer that require LONG_NAME on every element but do not enforce its uniqueness (--resolve-duplicate-names).

Methods

static add_args(parser: argparse.ArgumentParser) None

Register this subcommand’s flags onto parser.

Used in