summaryrefslogtreecommitdiffstats
path: root/commands/convert.go
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2015-12-02 12:00:47 -0700
committerAnthony Fok <foka@debian.org>2015-12-03 00:36:38 -0700
commit00d04774f0d9789262557af6a6465d8b6271839d (patch)
tree6ac014c9a651962d6bd17d31aa69a720aed9c599 /commands/convert.go
parentc9526f6e3fdffe9e583e11d3513faa392576c305 (diff)
Change most global flags into local ones
This is to ensure that only the relevant command-line flags for a certain Hugo subcommand is shown to the end user, reducing clutter and improving user experience. Fixes #1624 - CLI UX: Flags shouldn't be global
Diffstat (limited to 'commands/convert.go')
-rw-r--r--commands/convert.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/convert.go b/commands/convert.go
index 3e66ba2bf..4e5e1fb8f 100644
--- a/commands/convert.go
+++ b/commands/convert.go
@@ -74,6 +74,7 @@ func init() {
convertCmd.AddCommand(toTOMLCmd)
convertCmd.AddCommand(toYAMLCmd)
convertCmd.PersistentFlags().StringVarP(&outputDir, "output", "o", "", "filesystem path to write files to")
+ convertCmd.PersistentFlags().StringVarP(&Source, "source", "s", "", "filesystem path to read files relative from")
convertCmd.PersistentFlags().BoolVar(&unsafe, "unsafe", false, "enable less safe operations, please backup first")
}