spack.cmd.common package


spack.cmd.common.arguments module

spack.cmd.common.arguments.add_common_arguments(parser, list_of_arguments)

Extend a parser with extra arguments

  • parser – parser to be extended
  • list_of_arguments – arguments to be added to the parser

Module contents

spack.cmd.common.shell_init_instructions(cmd, equivalent)

Print out instructions for users to initialize shell support.

  • cmd (str) – the command the user tried to run that requires shell support in order to work
  • equivalent (str) – a command they can run instead, without enabling shell support