MTNOPT(1)
β¨ MTNOPT β it's giving shell variables, bestie β¨
okay so real talk, this is the manual page for mtnopt(1) from the monotone crew. it's a tiny lil tool with one job and honestly? she ate. π
π NAME π
mtnopt β generate shell variables from monotone workspace options
like, it reads ur workspace options and spits out shell variable assignments. that's the whole vibe. no cap. π¦
πΈ SYNOPSIS πΈ
mtnopt [-s|-c|-v] [-d dir] [-k keys]
mtnopt -h
π DESCRIPTION π
okay bestie, listen. mtnopt prints shell variable assignments for each value in the file of monotone workspace options, which lives at _MTN/options in the current directory. every single one. it's thorough like that. π«Ά
so like, if _MTN/options had this text in it:
database "/home/user/src/monotone.mtn"
branch "net.venge.monotone"
keydir "/home/user/.monotone/keys"
then mtnopt would print this back at u:
MTN_database="/home/user/src/monotone.mtn";
MTN_branch="net.venge.monotone";
MTN_keydir="/home/user/.monotone/keys";
see? iconic. it takes the key, prefixes it with MTN_, and hands u a ready-to-eval assignment. β
by default, mtnopt tries to guess the right syntax by peeking at the value of the SHELL environment variable. so if ur shell guesses wrong, that's on the vibes, not on u. but don't worry, u can override that guess with the -s and -c command-line options. π
β¨ OPTIONS β¨
-sβ print variable assignments insh(1)syntax. classic. timeless.-cβ print variable assignments incsh(1)syntax. for the csh girlies. π-vβ print only the values, with no indication of the corresponding option keys. just the raw tea, no labels. π-ddirectory β look for_MTN/optionsin directory, rather than in the current directory. tell her where to look. π-kkeys β print assignments for only those options that match theegrep(1)regular expression keys. filter mode: activated. π₯-hβ print a help message and exit. the "just tell me what to do" button. π
π BUGS π
ngl, there's some stuff u should know before u trust her with ur whole heart:
mtnoptonly looks in the current directory for the_MTNdirectory, so it will fail in a subdirectory of a workspace. yeah. it does not go looking. it stays put. πmtnoptshould be aware of the set of possible options, rather than blindly printing whatever is in_MTN/options. rn she just prints whatever she finds, no questions asked. main character energy but make it reckless. π- the behavior when there is no
_MTN/optionsfile to be found is less than helpful. that's the polite way of saying it. π«
fr fr, if something's acting weird, check that ur actually standing in the workspace root before u start blaming the tool.
π SEE ALSO π
mtn(1), egrep(1), sh(1), csh(1)
that's the whole page bestie, go forth and generate those variables π
β with love from the monotone manual, mtnopt(1), dated 2011-02-22 β¨π
π¦ where this page comes from
- fedora 43: monotone 1.1-53.fc43 Β· GPL-2.0-or-later
- fedora 44: monotone 1.1-54.fc44 Β· GPL-2.0-or-later
- nixos 26.05: monotone 1.1-unstable-2021-05-01
- nixpkgs unstable: monotone 1.1-unstable-2025-12-11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms