-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/bahner/go-ma-actor/config" | ||
"github.com/spf13/pflag" | ||
) | ||
|
||
const ( | ||
defaultPongMode = false | ||
defaultRelayMode = false | ||
) | ||
|
||
func init() { | ||
|
||
// NB! Other mode pflags are in the proper mode packages. | ||
pflag.Bool("pong", defaultPongMode, "Pong mode with automatic replies and no UI.") | ||
pflag.Bool("pong-fortune", config.DEFAULT_PONG_FORTUNE_MODE, "Reply with a fortune cookie, instead of a static message, if availble.") | ||
pflag.Bool("relay", defaultRelayMode, "Relay mode with no actor, to just listen and relay messages.") | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters