refactor: update help options and improve config file handling
This commit is contained in:
14
README.md
14
README.md
@@ -170,25 +170,19 @@ Imports GPG keys for verifying Debian and Ubuntu repository signatures. Requires
|
||||
- Requires `~/.gnupg/` to exist
|
||||
- Keyserver can be customized via `GPG_KEYSERVER` in config
|
||||
|
||||
### Options
|
||||
### Help
|
||||
|
||||
#### `-c <path>` — Specify config file
|
||||
#### `help`, `-h`, `--help` — Show usage
|
||||
|
||||
```bash
|
||||
./aptly-mirror.sh -c /etc/aptly-mirror.conf update
|
||||
./aptly-mirror.sh help
|
||||
```
|
||||
|
||||
Config file search order (if `-c` not specified):
|
||||
Config file search order:
|
||||
1. `$APTLY_MIRROR_CONF` environment variable
|
||||
2. `./aptly-mirror.conf` (same directory as script)
|
||||
3. `/etc/aptly-mirror.conf`
|
||||
|
||||
#### `-h`, `--help` — Show usage
|
||||
|
||||
```bash
|
||||
./aptly-mirror.sh --help
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
All settings are in `aptly-mirror.conf`. See the included example for detailed comments.
|
||||
|
||||
Reference in New Issue
Block a user