[GRADLE-372] To respect a very common command-line idiom, Gradle should make the '-f' flag correspond to '--buildfile' not --full-stacktrace Created: 26/Jan/09 Updated: 10/Feb/17 Resolved: 10/Feb/17 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | ||
Reporter: | Jon Cox | Assignee: | Unassigned |
Resolution: | Won't Fix | Votes: | 0 |
Description |
For the vast majority of programs that can be run on the command line, Thus, it's un-idiomatic & clumsy-feeling to say: gradle -b xxx.gradle Consider the following command line options for gradle:
I think there's a pretty strong argument for making the '-f' switch Of course, there are legitimate exceptions to every rule, but it's best Gradle is such a new program and '-f' seems like such a seldom-used Some time ago, I did a survey of Unix command line tools in the wild, and added Here are the results, along with examples of programs -a append tee -a all ls -a -b bit byte binary mode -c count grep -c command sh -c <command> -d directory cpio -d debug perl -d:ptkdb decompress -e execute perl -e -f from file grep -f force rm -f -g gui mode symbolic info -G no-group ls -G (annoying) -h help host -i ignore grep -i interactive rm -i -I include gcc -I... -j bzip tar -j -k keep original bzip -k keep going make -k kilobytes du -k -l long format list files line count login name ssh -l -L follow symlinks -m mode merge diff3 -m megabytes du -m minutes -n numeric sort -n non-interactive rsh -n -o output file gcc -o -p process path mkdir -p process id ps -p -q quiet mode grep -q -r reverse order sort -r recursive rm -r (could use -R) -R recursive chmod -R -s silent cat -s (-q would have been nicer) socket irpty -s -t table tar -t time sort ls -t trace autoconf -t -u unique sort -u unbuffered cat -u sort by access ls -u -v version perl -v Note: -v means "version" about 2x as often as it means "verbose" in unix man pages verbose tar -v -w width pr -w wide ps -w words wc -w -x extract tar -x by line ls -x exclude -y yes shutdown -y year ncal -y -z is compressed tar -z Anyway, I'd be very interested to hear what others think about this. |
Comments |
Comment by Hans Dockter [ 08/Feb/09 ] |
Thanks a lot for this. We should tackle this in the same go, as we change our command line stuff how to call and exclude tasks. |
Comment by Benjamin Muschko [ 15/Nov/16 ] |
As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub. We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to. Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:
We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle! |
Comment by Benjamin Muschko [ 10/Feb/17 ] |
Thanks again for reporting this issue. We haven't heard back from you after our inquiry from November 15th. We are closing this issue now. Please create an issue on GitHub if you still feel passionate about getting it resolved. |