Skip to main content

Module cleanup

Module cleanup 

Source
Expand description

xil cleanup โ€” delete stems whose seq no longer matches the parsed script. Port of XILP008_stale_stem_cleanup.py.

Structsยง

Args ๐Ÿ”’
Stale
One stale stem and why it is stale.

Constantsยง

USAGE ๐Ÿ”’
argparseโ€™s own usage block, wrapped at its default 80 columns. The three parser.error sites print this verbatim before their message, and clapโ€™s usage rendering is not the same shape.

Functionsยง

command
The clap definition behind --help, for man pages.
execute ๐Ÿ”’
find_stale_stems
Stems that disagree with the current parsed entries.
pad ๐Ÿ”’
Pad to width by character count (f"{s:40s}").
parser_error ๐Ÿ”’
parser.error(msg): usage on stderr, the message, exit 2.
run
stem_of ๐Ÿ”’
os.path.splitext(os.path.basename(p))[0].