- Add pflag dependency for POSIX/GNU-style command line parsing - Replace Go standard flag package with pflag for better UX - Implement long options with double dashes (--config, --max-messages, --help) - Add short option aliases with single dashes (-c, -m, -h) - Update help message with proper formatting and application description - Update all documentation to reflect new flag syntax - Update test scripts to use new command line format GNU-style options provide better usability: - Long descriptive options with --flag-name format - Short single-character aliases for common options - Standard help flag behavior with --help/-h - Compatible with shell completion and standard conventions Command line interface now supports: - --config/-c FILE: Path to configuration file - --max-messages/-m N: Message processing limit per mailbox - --help/-h: Show help message and exit All existing functionality preserved with improved command line experience. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
405 B
Modula-2
17 lines
405 B
Modula-2
module mail2couch
|
|
|
|
go 1.24.4
|
|
|
|
require (
|
|
github.com/emersion/go-imap/v2 v2.0.0-beta.5
|
|
github.com/emersion/go-message v0.18.1
|
|
github.com/go-kivik/kivik/v4 v4.4.0
|
|
github.com/spf13/pflag v1.0.7
|
|
)
|
|
|
|
require (
|
|
github.com/emersion/go-sasl v0.0.0-20231106173351-e73c9f7bad43 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
golang.org/x/net v0.25.0 // indirect
|
|
golang.org/x/sync v0.10.0 // indirect
|
|
)
|