add description
This commit is contained in:
parent
405b7c9414
commit
a0f7da8a09
14
cmd/root.go
14
cmd/root.go
|
@ -44,13 +44,15 @@ var nodeOrder []string
|
|||
// rootCmd represents the base command when called without any subcommands
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "gv2adj",
|
||||
Short: "A brief description of your application",
|
||||
Long: `A longer description that spans multiple lines and likely contains
|
||||
examples and usage of using your application. For example:
|
||||
Short: "Compute adjacency matrices for Graphviz graphs",
|
||||
Long: `Compute adjacency matrices (either weighted or unweighted) for Graphviz graphs (both directed and undirected).
|
||||
|
||||
Cobra is a CLI library for Go that empowers applications.
|
||||
This application is a tool to generate the needed files
|
||||
to quickly create a Cobra application.`,
|
||||
Compute an unweighted adjacency matrix:
|
||||
gv2adj -f <dot file>
|
||||
|
||||
Compute a weighted adjacency matrix, where weights are stored in the 'len' attribute of each edge:
|
||||
gv2adj -f <dot file> --weight-attr len
|
||||
`,
|
||||
// Uncomment the following line if your bare application
|
||||
// has an action associated with it:
|
||||
Run: parse,
|
||||
|
|
Loading…
Reference in New Issue