Skip to content

Commit 2488cd5

Browse files
committed
Get rid of undocumented flags.
Instead, only use environment variables for configuration.
1 parent 5bf87a0 commit 2488cd5

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

bin/janet-pm

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -275,16 +275,6 @@
275275
(argparse/argparse
276276
help-text
277277

278-
"syspath"
279-
{:short "m"
280-
:kind :option
281-
:help "Set the syspath"}
282-
283-
"local"
284-
{:short "l"
285-
:kind :flag
286-
:help "Set the syspath to ./jpm_tree"}
287-
288278
:default
289279
{:kind :accumulate
290280
:help "Commands to run"}))
@@ -293,16 +283,6 @@
293283
(unless ap (break))
294284
(unless (ap :default) (break (help)))
295285

296-
# Flag Configuration
297-
(when-let [local (get ap :local)]
298-
(os/mkdir "jpm_tree")
299-
(os/mkdir "jpm_tree/man")
300-
(os/mkdir "jpm_tree/bin")
301-
(put root-env :binpath (path/abspath "jpm_tree/bin"))
302-
(put root-env :manpath (path/abspath "jpm_tree/man"))
303-
(put root-env *syspath* (path/abspath "jpm_tree")))
304-
(when-let [sp (get ap :syspath)] (put root-env *syspath* sp))
305-
306286
# Env Vars Configuration
307287
(pm-config/read-env-variables root-env)
308288

0 commit comments

Comments
 (0)