deprecated --quiet

This commit is contained in:
Fabien Potencier 2019-03-03 09:23:48 +01:00
parent e577e7eae9
commit 8ac3dcd530
2 changed files with 10 additions and 1 deletions

View file

@ -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

View file

@ -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,