summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-08 17:45:12 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-08 17:45:12 +0100
commitb6049d0b616812bc72d0549d88cc59f21d517b7c (patch)
treecddfb970a49d7a4016f6872eaa48551c52e7ba30
parente7c3ce2030313576cdf15e0eff26e59fcbeb4acc (diff)
Added short options for exec and project subcommands.
-rw-r--r--cmd-exec.go4
-rw-r--r--cmd-projects.go8
2 files changed, 6 insertions, 6 deletions
diff --git a/cmd-exec.go b/cmd-exec.go
index d5b6466..1d121c3 100644
--- a/cmd-exec.go
+++ b/cmd-exec.go
@@ -21,12 +21,12 @@ func initCmdExec(cmdDef *[]cli.Command) {
Usage: "project ID you want to build (mandatory variable)",
},
cli.StringFlag{
- Name: "rpath",
+ Name: "rpath, p",
EnvVar: "XDS_RPATH",
Usage: "relative path into project",
},
cli.StringFlag{
- Name: "sdkid",
+ Name: "sdkid, sdk",
EnvVar: "XDS_SDK_ID",
Usage: "Cross Sdk ID to use to build project",
},
diff --git a/cmd-projects.go b/cmd-projects.go
index 9a113db..23e75c5 100644
--- a/cmd-projects.go
+++ b/cmd-projects.go
@@ -22,19 +22,19 @@ func initCmdProjects(cmdDef *[]cli.Command) {
Action: projectsAdd,
Flags: []cli.Flag{
cli.StringFlag{
- Name: "label",
+ Name: "label, l",
Usage: "project label (free form string)",
},
cli.StringFlag{
- Name: "path",
+ Name: "path, p",
Usage: "project local path",
},
cli.StringFlag{
- Name: "server-path",
+ Name: "server-path, sp",
Usage: "project server path (only used with pathmap type)",
},
cli.StringFlag{
- Name: "type",
+ Name: "type, t",
Usage: "project type (pathmap|pm, cloudsync|sc)",
},
},