← Back to issue list

`pack` command gives wrong help message and doesn't support packing a directory

View original Github issue

Metadata

Project
craft-application
Number
#338
Type
issue
State
open
Author
mr-cal
Labels
Created
2024-05-01 18:27:57+00:00
Updated
2025-05-23 17:27:03+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Provide the correct parameters in the help message and provide a way to pack a directory. ### Why it needs to get done - `*craft pack --help` says to use a part name, even though this raises an error: ```bash ~> testcraft pack --help Usage: testcraft pack [options] <part-name> ``` - There is no straightforward way for an application to override the pack command to pack a directory because the command requires loading a project file. Source: https://github.com/canonical/snapcraft/issues/4769

Evaluation history

No evaluation history available.