@@ -57,7 +57,7 @@ If your command corresponds to a list or tuple, you can extend your command by
5757adding the index of an element of the component to your command as an argument.
5858
5959For example, ` widget function-that-returns-list 2 ` will correspond to item 2 of
60- the result of function_that_returns_list.
60+ the result of ` function_that_returns_list ` .
6161
6262
6363### Calling a function
@@ -90,7 +90,7 @@ See also the section on [Changing the Separator](#separator-flag).
9090### Instantiating a class
9191
9292If your command corresponds to a class, you can extend your command by adding
93- the arguments of the class's \_\_ init \_\_ function. Arguments must be specified
93+ the arguments of the class's ` __init__ ` function. Arguments must be specified
9494by name, using the flags syntax. See the section on
9595[ calling a function] ( #calling-a-function ) for more details.
9696
@@ -105,8 +105,8 @@ after the final standalone `--` argument. (If there is no `--` argument, then no
105105arguments are used for flags.)
106106
107107For example, to set the alsologtostderr flag, you could run the command:
108- ` widget bang --noise=boom -- --alsologtostderr ` . The --noise argument is
109- consumed by Fire, but the --alsologtostderr argument is treated as a normal
108+ ` widget bang --noise=boom -- --alsologtostderr ` . The ` --noise ` argument is
109+ consumed by Fire, but the ` --alsologtostderr ` argument is treated as a normal
110110Flag.
111111
112112All CLIs built with Python Fire share some flags, as described in the next
@@ -146,7 +146,7 @@ the `ipython` package needs to be installed in your environment.
146146Call ` widget -- --completion ` to generate a completion script for the Fire CLI
147147` widget ` . To save the completion script to your home directory, you could e.g.
148148run ` widget -- --completion > ~/.widget-completion ` . You should then source this
149- file; to get permanent completion, source this file from your .bashrc file.
149+ file; to get permanent completion, source this file from your ` .bashrc ` file.
150150
151151Call ` widget -- --completion fish ` to generate a completion script for the Fish
152152shell. Source this file from your fish.config.
@@ -177,7 +177,7 @@ corresponds to, as well as usage information for how to extend that command.
177177### ` --trace ` : Getting a Fire trace <a name =" trace-flag " ></a >
178178
179179In order to understand what is happening when you call Python Fire, it can be
180- useful to request a trace. This is done via the --trace flag, e.g.
180+ useful to request a trace. This is done via the ` --trace ` flag, e.g.
181181` widget whack 5 -- --trace ` .
182182
183183A trace provides step by step information about how the Fire command was
0 commit comments