github.com/criteo/command-launcher@v0.0.0-20230407142452-fb616f546e98/gh-pages/content/en/blog/1.6.0-release-notes.md (about) 1 --- 2 title: "✨ 1.6.0 Release" 3 description: "Command launcher 1.6.0 Release" 4 excerpt: "Command launcher 1.6.0 Release" 5 date: 2022-09-18T09:19:42+01:00 6 lastmod: 2022-09-18T09:19:42+01:00 7 draft: false 8 weight: 50 9 images: [] 10 categories: ["News"] 11 tags: ["release"] 12 contributors: ["Bo HOU"] 13 pinned: false 14 homepage: false 15 --- 16 17 ## Release notes 18 19 - Add the `PackageDir` context variable to reference the package's directory, same as the `Cache` and `Root` context variables. `Cache` and `Root` variables are deprecated. 20 - Extend the format of the flag definition. Now it is possible to add bool type flags: `[name] \t [shorthand] \t [description] \t [type] \t [default]`. Currently, two types are supported: `string` and `bool`. both `type` and `default value` are optional, by default, the type is "string", and the default value is the empty string. 21 - New command definition field in manifest, `checkFlags`. The default value is false, when it is true, before executing the command, the arguments will be parsed, and the parsed flags and args will be passed to the command in the form of an environment variable: `[APP_NAME]_FLAG_[FLAG_LONG_NAME]` and `[APP_NAME]_ARG_[ARG_INDEX_STARTS_FROM_1]`. 22 - New command definition field in manifest: `argsUsage` to customize the one-line help message. This field will take effect when `checkFlags=true` 23 - New command definition field in manifest: `examples` to customize the examples in help message. This field will take effect when `checkFlags=true`