Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print messages to stderr when output is piped #341

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Rename output long flag to output-dir
0WN463 committed Sep 28, 2024
commit 7fde091a6560d1b6510bd4878a41d16330c1b6d2
2 changes: 1 addition & 1 deletion cmd/qrcp.go
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ func init() {
rootCmd.PersistentFlags().StringVar(&app.Flags.TlsKey, "tls-key", "", "path to TLS private key to use with HTTPS")
rootCmd.PersistentFlags().BoolVarP(&app.Flags.Reversed, "reversed", "r", false, "Reverse QR code (black text on white background)")
// Receive command flags
receiveCmd.PersistentFlags().StringVarP(&app.Flags.Output, "output", "o", "", "output directory for receiving files")
receiveCmd.PersistentFlags().StringVarP(&app.Flags.Output, "output-dir", "o", "", "output directory for receiving files")
}

// The root command (`qrcp`) is like a shortcut of the `send` command