Skip to content

Commit 0338bf3

Browse files
committed
Add description block for #restore
* i was unable to figure out how to write tests for the commandline output * i did write a test for codegansta/cli (urfave/cli#68) to prove that the cli handles Description properly
1 parent e06234b commit 0338bf3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ func main() {
152152
Name: "restore",
153153
ShortName: "r",
154154
Usage: "Restore completed and current assignments from exercism.io",
155+
Description: "Restore will pull the latest revisions of exercises that have already been " +
156+
"submitted. It will *not* overwrite existing files. If you have made changes " +
157+
"to a file and have not submitted it, and you're trying to restore the last " +
158+
"submitted version, first move that file out of the way, then call restore.",
155159
Action: func(c *cli.Context) {
156160
config, err := configuration.FromFile(configuration.HomeDir())
157161
if err != nil {

0 commit comments

Comments
 (0)