Skip to content

Commit

Permalink
Merge pull request #2114 from mytskine/bash-x
Browse files Browse the repository at this point in the history
Add the boolean flag "bash -x"
  • Loading branch information
rsteube authored Jan 4, 2024
2 parents 316f71b + 11fd449 commit a7c88f2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions completers/bash_completer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,23 @@ func init() {
carapace.Gen(rootCmd).Standalone()

rootCmd.Flags().BoolS("c", "c", false, "commands are read from the first non-option argument command_string")
rootCmd.Flags().Bool("debugger", false, "Arrange for the debugger profile to be executed before the shell starts.")
rootCmd.Flags().Bool("debugger", false, "Arrange for the debugger profile to be executed before the shell starts.")
rootCmd.Flags().Bool("dump-po-strings", false, "Equivalent to -D, but the output is in the GNU gettext po file format")
rootCmd.Flags().BoolP("dump-strings", "D", false, "A list of all double-quoted strings preceded by $ is printed on the standard output.")
rootCmd.Flags().BoolP("dump-strings", "D", false, "A list of all double-quoted strings preceded by $ is printed on the standard output.")
rootCmd.Flags().BoolS("i", "i", false, "If the -i option is present, the shell is interactive.")
rootCmd.Flags().String("init-file", "", "")
rootCmd.Flags().BoolP("login", "l", false, "act as if invoked as a login shell")
rootCmd.Flags().BoolP("login", "l", false, "act as if invoked as a login shell")
rootCmd.Flags().Bool("noediting", false, "do not use the GNU readline library to read command lines")
rootCmd.Flags().Bool("noprofile", false, "skip profile initialization files")
rootCmd.Flags().Bool("norc", false, "skip ~/.bashrc")
rootCmd.Flags().Bool("posix", false, "match posix behavior")
rootCmd.Flags().BoolS("r", "r", false, "restricted shell")
rootCmd.Flags().String("rcfile", "", "execute commands from file instead of the default")
rootCmd.Flags().String("rcfile", "", "execute commands from file instead of the default")
rootCmd.Flags().Bool("restricted", false, "The shell becomes restricted.")
rootCmd.Flags().BoolS("s", "s", false, "then commands are read from the standard input")
rootCmd.Flags().BoolP("verbose", "v", false, "verbose mode")
rootCmd.Flags().Bool("version", false, "Show version information ")
rootCmd.Flags().Bool("x", false, "Print commands and their arguments as they are executed.")

carapace.Gen(rootCmd).FlagCompletion(carapace.ActionMap{
"init-file": carapace.ActionFiles(),
Expand Down

0 comments on commit a7c88f2

Please sign in to comment.