Skip to content

Commit 5119626

Browse files
committed
update note
1 parent 54183f4 commit 5119626

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

command/alias.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ var aliasCmd = &cobra.Command{
2121

2222
var aliasSetCmd = &cobra.Command{
2323
Use: "set <alias> <expansion>",
24-
// TODO HACK: even when inside of a single-quoted string, cobra was noticing and parsing any flags
24+
// NB: Even when inside of a single-quoted string, cobra was noticing and parsing any flags
2525
// used in an alias expansion string argument. Since this command needs no flags, I disabled their
26-
// parsing. If we ever want to add flags to alias set we'll have to figure this out. I haven't
27-
// checked if this is fixed in a new cobra.
26+
// parsing. If we ever want to add flags to alias set we'll have to figure this out. I tested on
27+
// linux in various shells against cobra 1.0; others on macos did /not/ see the same behavior.
2828
DisableFlagParsing: true,
2929
Short: "Create a shortcut for a gh command",
3030
Long: `

0 commit comments

Comments
 (0)