Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

(PRE-93) Change CLI options to use dash instead of underscore #129

Conversation

thallgren
Copy link
Contributor

All CLI options in the Puppet code-base uses dash as word separator.
Before this commit, catalog-preview used an underscore. This commit
changes this so that both dash and underscore can be used (to retain
backward compatibility). The documentation is changed to only mention
the dash variants.

The commit also changes boolean options so that they can be prefixed
with 'no-' to negate their meaning. This will be relevant when we add
boolean options that default to true (as the planned
--diff-array-value for instance) and we want to provide a way to turn
the option off.

@hlindberg
Copy link
Contributor

rebase needed

All CLI options in the Puppet code-base uses dash as word separator.
Before this commit, catalog-preview used an underscore. This commit
changes this so that both dash and underscore can be used (to retain
backward compatibility). The documentation is changed to only mention
the dash variants.

The commit also changes boolean options so that they can be prefixed
with 'no-' to negate their meaning. This will be relevant when we add
boolean options that default to `true` (as the planned
--diff-array-value for instance) and we want to provide a way to turn
the option off.
@thallgren thallgren force-pushed the issue/pre-93/dash-in-cli-options branch from 089cb83 to 282a25b Compare March 16, 2016 11:34
@hlindberg
Copy link
Contributor

The README,md needs the same update as the help.md file (They are not identical, so cannot simply be copied over, the README needs to be edited). Merging this though as it is blocking other PRs. Can do a (maint) to fix the README.

hlindberg added a commit that referenced this pull request Mar 16, 2016
(PRE-93) Change CLI options to use dash instead of underscore
@hlindberg hlindberg merged commit 159c0d7 into puppetlabs-toy-chest:master Mar 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants