You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it is now easier to add a new cli flag. The new implementation automatically adds any flag of the cli.Flag structure which was added to the cli.OPTIONS array to the flag parsing logic. It also supports displaying all added options with their name and description to the help page which can be viewed by running fleck without any arguments.
Copy file name to clipboardExpand all lines: fleck.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ func main() {
19
19
os.Exit(1)
20
20
}
21
21
22
-
ifARGUMENTS.ShellMacroEnabled {
22
+
ifcli.GetFlag(ARGUMENTS, "shell-macro-enabled") {
23
23
log.Println("warning: 'shell-macro-enabled' flag specified, this can harm your operating system and make it vulnerable for attack, proceed at your own digression")
0 commit comments