Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usage multiple=#true not working #4295

Open
jdx opened this issue Feb 3, 2025 · 0 comments
Open

usage multiple=#true not working #4295

jdx opened this issue Feb 3, 2025 · 0 comments

Comments

@jdx
Copy link
Owner

jdx commented Feb 3, 2025

Discussed in #4294

Originally posted by arcticShadow February 2, 2025
I'll start by saying this is probably something that i've done wrong - but as yet i cant find out what.

I was happily using file based tasks, and adding usage spec'd stuff to them to create nifty helper utils. now none of my existing or new scripts are working. the tasks is run, but the usage spec isn't being applied and as a result no flags are being passed in to my script.

Not sure where to start looking for answers.

i have tried with and without usage installed as a tool in my project.

The task i'm working with at present is a node task

#!/usr/bin/env node
//MISE description="Compare block IDs between grower and packer tenants"
//USAGE flag "-g --grower <growerTenant>" required=#true multiple=#true help="The grower tenant ID(s) to compare"
//USAGE flag "-p --packer <packerTenant>" required=#true help="The packer tenant ID to match against"
//USAGE flag "-v --verbose" help="Enable verbose logging"

console.log(process.env.usage_grower);
console.log(process.env.usage_packer);
console.log(process.env);

process.exit(0);

mise doctor:

Details
version: 2025.2.0 macos-arm64 (2025-02-02)
activated: yes
shims_on_path: no

build_info:
Target: aarch64-apple-darwin
Features: DEFAULT, NATIVE_TLS, OPENSSL, SELF_UPDATE
Built: Sun, 2 Feb 2025 16:59:18 +0000
Rust Version: rustc 1.84.0 (9fc6b4312 2025-01-07)
Profile: release

shell:
/bin/zsh
zsh 5.9 (x86_64-apple-darwin23.0)

dirs:
cache: ~/Library/Caches/mise
config: ~/.config/mise
data: ~/.local/share/mise
shims: ~/.local/share/mise/shims
state: ~/.local/state/mise

config_files:
~/.config/mise/config.toml
~/repos/hectre/Support/mise.toml

ignored_config_files: (none)

backends:
aqua
asdf
cargo
core
dotnet
gem
go
npm
pipx
spm
ubi
vfox

plugins:
adr-tools https://gitlab.com/td7x/asdf/adr-tools#e0f6e9e
android [email protected]:arcticShadow/asdf-android.git#8a52faf
asdf-gcloud https://github.com/jthegedus/asdf-gcloud.git#00cdf06
gcloud
dart https://github.com/PatOConnor43/asdf-dart.git#d14ad3b
dotnet https://github.com/hensou/asdf-dotnet.git#7134dd9
flutter https://github.com/oae/asdf-flutter.git#d736066

toolset:
core:[email protected]
core:[email protected]

path:
~/.local/share/mise/installs/node/23.7.0/bin
~/.local/share/mise/installs/python/3.13.1/bin
/opt/homebrew/bin
/opt/homebrew/sbin
/usr/local/bin
/System/Cryptexes/App/usr/bin
/usr/bin
/bin
/usr/sbin
/sbin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
/Library/Apple/usr/bin
~/.local/bin

env_vars:
MISE_SHELL=zsh
MISE_GITHUB_TOKEN=REDACTED

settings:
asdf true ~/.config/mise/config.toml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant