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

Wrongly using a command should only output help for it #24

Closed
demostanis opened this issue Apr 15, 2021 · 4 comments
Closed

Wrongly using a command should only output help for it #24

demostanis opened this issue Apr 15, 2021 · 4 comments

Comments

@demostanis
Copy link

Currently, when misusing a command (e.g. giving wrong number of arguments), Pakku will output help for every command.
It should (well, IMHO) only output help for the misused command.
pakku add
Expected:

Add: 
Add distribution

Examples:
[...]

Actual:

Add: 
Add distribution

Examples:
[...]

Remove: 
Remove distribution

Examples:
[...]
@hythm7
Copy link
Owner

hythm7 commented Apr 16, 2021

The example you gave works as expected on my machine, can you give another example for the issue?

misusing add:

> pakku add
Add: 
Add distribution

Examples:
pakku add MyModule
pakku add nodeps MyModule
pakku add notest MyModule
pakku add exclude Dep MyModule
pakku add to     /opt/MyApp MyModule
pakku add force  to   home  MyModule1 MyModule2

Options:
deps            → add dependencies
nodeps          → dont add dependencies
deps requires   → add required dependencies only
deps recommends → add required and recommended dependencies
deps only       → dont add the dist, only dependencies
build           → build distribution
nobuild         → bypass build
test            → test distribution
notest          → bypass test
force           → force add distribution even if installed
noforce         → no force
exclude <dep>   → add distribution but exclude specific dep
to <repo>       → add distribution to repo <home site vendor core /path/to/MyApp>


-Ofun
>

misusing remove:

> pakku remove
Remove: 
Remove distribution

Examples:
pakku remove MyModule

Options:
from <repo> → remove distribution from provided repo only


-Ofun
> 

@demostanis
Copy link
Author

It seems to be happening with pakku please nopretty add

@hythm7
Copy link
Owner

hythm7 commented Apr 17, 2021

Fixed. Thanks.

@hythm7
Copy link
Owner

hythm7 commented Apr 23, 2021

Closing. Please re-open in case there is still an issue. Thanks.

@hythm7 hythm7 closed this as completed Apr 23, 2021
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

2 participants