diff options
| author | 2025-03-23 08:16:40 -0500 | |
|---|---|---|
| committer | 2025-03-23 08:16:40 -0500 | |
| commit | 2488cd55aa2f269c06a3f8ab6312f1167aa769d1 (patch) | |
| tree | ce3a6766ab65ddc0e19a22b36d67e1b810751c26 /bin/janet-pm | |
| parent | Remove redundant include paths with msvc. (diff) | |
Get rid of undocumented flags.
Instead, only use environment variables for configuration.
Diffstat (limited to 'bin/janet-pm')
| -rwxr-xr-x | bin/janet-pm | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/bin/janet-pm b/bin/janet-pm index dfcd9b7..1e03e88 100755 --- a/bin/janet-pm +++ b/bin/janet-pm @@ -275,16 +275,6 @@ (argparse/argparse help-text - "syspath" - {:short "m" - :kind :option - :help "Set the syspath"} - - "local" - {:short "l" - :kind :flag - :help "Set the syspath to ./jpm_tree"} - :default {:kind :accumulate :help "Commands to run"})) @@ -293,16 +283,6 @@ (unless ap (break)) (unless (ap :default) (break (help))) - # Flag Configuration - (when-let [local (get ap :local)] - (os/mkdir "jpm_tree") - (os/mkdir "jpm_tree/man") - (os/mkdir "jpm_tree/bin") - (put root-env :binpath (path/abspath "jpm_tree/bin")) - (put root-env :manpath (path/abspath "jpm_tree/man")) - (put root-env *syspath* (path/abspath "jpm_tree"))) - (when-let [sp (get ap :syspath)] (put root-env *syspath* sp)) - # Env Vars Configuration (pm-config/read-env-variables root-env) |
