diff --git a/CHANGELOG b/CHANGELOG index 8800767..54fbca8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,11 @@ CHANGELOG ========= +* 1.1.0 (2019-XX-XX) + + * deprecated the `--quiet` option (append `2>/dev/null` to the command instead) + * moved information console display to stderr instead of stdout + * 1.0.1 (2017-02-24) * added the `--version` flag diff --git a/main.go b/main.go index 86c39a0..842b7e0 100644 --- a/main.go +++ b/main.go @@ -52,7 +52,7 @@ func init() { flag.StringVar(&path, "path", ".", "The repository path (optional, current directory by default)") flag.BoolVar(&scratch, "scratch", false, "Flush the cache (optional)") flag.BoolVar(&debug, "debug", false, "Enable the debug mode (optional)") - flag.BoolVar(&quiet, "quiet", false, "Suppress the output (optional)") + flag.BoolVar(&quiet, "quiet", false, "[DEPRECATED] Suppress the output (optional)") flag.BoolVar(&legacy, "legacy", false, "[DEPRECATED] Enable the legacy mode for projects migrating from an old version of git subtree split (optional)") flag.StringVar(&gitVersion, "git", "latest", "Simulate a given version of Git (optional)") flag.BoolVar(&progress, "progress", false, "Show progress bar (optional, cannot be enabled when debug is enabled)") @@ -77,6 +77,10 @@ func main() { gitVersion = "<1.8.2" } + if quiet { + fmt.Fprintln(os.Stderr, `The --quiet option is deprecated (append 2>/dev/null to the command instead)`) + } + config := &splitter.Config{ Path: path, Origin: origin,