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

Allow hiding arguments from help #4

Closed
lolgab opened this issue Feb 1, 2021 · 1 comment · Fixed by #52
Closed

Allow hiding arguments from help #4

lolgab opened this issue Feb 1, 2021 · 1 comment · Fixed by #52
Milestone

Comments

@lolgab
Copy link
Member

lolgab commented Feb 1, 2021

It is useful, when you want to deprecate a command line argument, to hide it from the instructions given by --help.
I'm trying to migrate an application using case-app and I'm missing this feature ( done with the @Hidden annotation in case-app

@lolgab lolgab changed the title Allow hiding parameter from help Allow hiding arguments from help Feb 1, 2021
@morgen-peschke
Copy link

This would also be helpful if you're doing something like this (which allows the script to know what directory it lives in):

#!/bin/bash

DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
exec amm "$0" --dir "$DIR" "$@"

!#

// Ammonite script follows

--dir isn't really relevant to the user, it's just plumbing, so hiding it would be ideal

@lefou lefou linked a pull request Feb 16, 2023 that will close this issue
lihaoyi pushed a commit that referenced this issue Apr 27, 2023
@lefou lefou added this to the after 0.4.0 milestone Apr 28, 2023
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

Successfully merging a pull request may close this issue.

3 participants