Skip to content

Align usage#1648

Merged
mrook merged 34 commits into
phingofficial:mainfrom
jawira:align-usage
Dec 1, 2021
Merged

Align usage#1648
mrook merged 34 commits into
phingofficial:mainfrom
jawira:align-usage

Conversation

@jawira
Copy link
Copy Markdown
Contributor

@jawira jawira commented Nov 23, 2021

Hello, I rewrote phing usage:

  • align short option when available
  • align long options
  • align description

Before:

phing [options] [target [target2 [target3] ...]]
Options: 
  -h -help               print this message
  -l -list               list available targets in this project
  -i -init [file]        generates an initial buildfile
  -v -version            print the version information and exit
  -q -quiet              be extra quiet
  -S -silent             print nothing but task outputs and build failures
  -verbose               be extra verbose
  -debug                 print debugging information
  -emacs, -e             produce logging information without adornments
  -diagnostics           print diagnostics information
  -strict                runs build in strict mode, considering a warning as error
  -no-strict             runs build normally (overrides buildfile attribute)
  -longtargets           show target descriptions during build
  -logfile <file>        use given file for log
  -logger <classname>    the class which is to perform logging
  -listener <classname>  add an instance of class as a project listener
  -f -buildfile <file>   use given buildfile
  -D<property>=<value>   use value for given property
  -keep-going, -k        execute all targets that do not depend
                         on failed target(s)
  -propertyfile <file>   load all properties from file
  -propertyfileoverride  values in property file override existing values
  -find <file>           search for buildfile towards the root of the
                         filesystem and use it
  -inputhandler <file>   the class to use to handle user input

Report bugs to https://github.com/phingofficial/phing/issues

After:

phing [options] [target [target2 [target3] ...]]
Options:
  -h -help                 print this message
  -l -list                 list available targets in this project
  -i -init [file]          generates an initial buildfile
  -v -version              print the version information and exit
  -q -quiet                be extra quiet
  -S -silent               print nothing but task outputs and build failures
     -verbose              be extra verbose
     -debug                print debugging information
  -e -emacs                produce logging information without adornments
     -diagnostics          print diagnostics information
     -strict               runs build in strict mode, considering a warning as error
     -no-strict            runs build normally (overrides buildfile attribute)
     -longtargets          show target descriptions during build
     -logfile <file>       use given file for log
     -logger <classname>   the class which is to perform logging
     -listener <classname> add an instance of class as a project listener
  -f -buildfile <file>     use given buildfile
     -D<property>=<value>  use value for given property
  -k -keep-going           execute all targets that do not depend on failed target(s)
     -propertyfile <file>  load all properties from file
     -propertyfileoverride values in property file override existing values
     -find <file>          search for buildfile towards the root of the filesystem and use it
     -inputhandler <file>  the class to use to handle user input

Report bugs to https://github.com/phingofficial/phing/issues

Let me know if changes are needed. Also feel free to close this PR :)

jawira and others added 30 commits February 11, 2019 14:27
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 23, 2021

Codecov Report

Merging #1648 (358edbc) into main (1126518) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1648      +/-   ##
============================================
- Coverage     58.22%   58.15%   -0.08%     
  Complexity     7010     7010              
============================================
  Files           356      356              
  Lines         16947    16918      -29     
============================================
- Hits           9868     9839      -29     
  Misses         7079     7079              
Impacted Files Coverage Δ
src/Phing/Phing.php 28.72% <100.00%> (-3.45%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1126518...358edbc. Read the comment docs.

@mrook mrook merged commit f5e4cf9 into phingofficial:main Dec 1, 2021
@mrook
Copy link
Copy Markdown
Member

mrook commented Dec 1, 2021

Thanks, dope!

@jawira jawira deleted the align-usage branch December 2, 2021 20:59
@mrook mrook added this to the 3.0.0-RC4 milestone Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants