argparse.dirs
See thedirs companion object
Common directories for an application of a given name.
The directories here are implemented as a mix of the XDG Base Directory Specification, macOS adaptations and a fallback to classic unix directories for system applications.
Applications are encouraged to use these directories instead of creating their own hierarchies. They are particularly well-suited for use as parameter defaults, for example:
val parser = argparse.ArgumentParser()
val cache = parser.param[os.Path](
"--cache-dir",
default = argparse.dirs("myapp").cache
Attributes
- name
the name of the application
- system
use system-wide paths instead of user-specific ones
- Companion:
- object
- Deprecated
- true
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any