mirror of
https://github.com/splitsh/lite.git
synced 2024-05-17 05:36:37 +02:00
deprecated --quiet
This commit is contained in:
parent
e577e7eae9
commit
8ac3dcd530
|
@ -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
|
||||
|
|
6
main.go
6
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,
|
||||
|
|
Loading…
Reference in a new issue