Simplify FileContentFlag.

This commit is contained in:
Alec Thomas
2018-10-25 12:53:55 -07:00
parent 119a0d115b
commit c0df056b14
2 changed files with 3 additions and 8 deletions
+1 -2
View File
@@ -164,6 +164,5 @@ func TestFileContentFlag(t *testing.T) {
f.Close()
_, err = mustNew(t, &cli).Parse([]string{"--file", f.Name()})
require.NoError(t, err)
require.Equal(t, []byte("hello world"), cli.File.Data)
require.Equal(t, f.Name(), cli.File.Path)
require.Equal(t, []byte("hello world"), []byte(cli.File))
}