about summary refs log tree commit diff
path: root/src/libstd/getopts.rs
AgeCommit message (Collapse)AuthorLines
2012-12-13Replace some Eq impls with deriving_eqBrian Anderson-115/+10
2012-12-13std: Convert records to structs in getoptsBrian Anderson-33/+42
2012-12-07Make short flags with a single-char arg work in getoptsTim Chevalier-34/+37
This looks like a big patch, but it's mostly just modernization. The real change is in the fn called `getopts`, the line if arg_follows && j < curlen { Minor bugfix, no review. Closes #2822
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-28Merge remote-tracking branch 'brson/companion' into incomingBrian Anderson-139/+3
Conflicts: src/compiletest/compiletest.rs src/libcargo/cargo.rs src/libcore/core.rs src/librustc/rustc.rs src/librustdoc/rustdoc.rc
2012-11-28Register snapshotsBrian Anderson-139/+3
2012-11-24[libstd] getopts, now with fewer copiesTim Chevalier-37/+37
Change the opt_ functions in getopts to take a reference to a Matches, instead of taking a Matches by-value, as suggested in
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+138
2012-11-18WhitespaceBrian Anderson-1/+1
2012-11-17Added support for options that take no arguments and may be repeated.Jesse Jones-0/+75
Closes #3568.
2012-10-17Add a module to getopts to support verbose option definitionKevin Cantu-3/+409
This is built on top of the existing functionality, but adds a `groups` module which defines functions allowing the user to specify whole short/long/description groups at once and provides a usage message.
2012-10-04Remove by-copy mode from std, mostlyTim Chevalier-4/+3
One instance remains in net_tcp due to a foreign fn. Lots of instances remain in serialization.rs, but IIRC that is being removed. I had to do unholy things to task-perf-word-count-generic to get it to compile after demoding pipes. I may well have messed up its performance, but it passes.
2012-10-03Remove crudTim Chevalier-1/+0
2012-10-03Remove uses of + mode from libstdTim Chevalier-12/+13
More or less the same as my analogous commit for libcore. Had to remove the forbid(deprecated_modes) pragma from some files -- will restore it after the snapshot.
2012-10-03De-export std::{json, getopts}. Part of #3583.Graydon Hoare-36/+18
2012-10-02Removing explicit uses of + modeTim Chevalier-1/+1
This removes most explicit uses of the + argument mode. Pending a snapshot, I had to remove the forbid(deprecated_modes) pragma from a bunch of files. I'll put it back! + mode still has to be used in a few places for functions that get moved (see task.rs) The changes outside core and std are due to the to_bytes trait and making the compiler (with legacy modes on) agree with the libraries (with legacy modes off) about modes.
2012-09-28demode vecNiko Matsakis-3/+2
2012-09-28Long lines.Graydon Hoare-1/+5
2012-09-28Long linesBrian Anderson-46/+54
2012-09-28std: Eliminate deprecated patternsBrian Anderson-15/+14
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-11/+10
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-40/+0
2012-09-23core: Demode optionBrian Anderson-7/+7
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+1
#[legacy_exports];
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+40
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-7/+7
Note that the method foo.each() is not de-moded, nor the other vec routines.
2012-09-18Revert "replace explicit calls to vec::each with vec::each_ref, partially ↵Niko Matsakis-11/+11
demode str" This reverts commit 1be24f0758d3075d2e7f141f8831bb8a233ce86e. Not quite ready.
2012-09-18replace explicit calls to vec::each with vec::each_ref, partially demode strNiko Matsakis-11/+11
2012-09-10Convert 'import' to 'use'. Remove 'import' keyword.Brian Anderson-2/+2
2012-09-10Make remaining moves explicit in libstdTim Chevalier-1/+1
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-0/+3
2012-09-06Refactor trans to replace lvalue and friends with Datum.Niko Matsakis-10/+14
Also: - report illegal move/ref combos whether or not ref comes first - commented out fix for #3387, too restrictive and causes an ICE
2012-09-04libstd: "import" -> "use"Patrick Walton-4/+4
2012-09-02std: warn(non_camel_case_types) everywhere. still some exceptionsBrian Anderson-2/+0
2012-08-29rustc: Make `<` and `=` into traitsPatrick Walton-9/+44
2012-08-28CamelCasify lots of stdBen Striegel-115/+117
2012-08-27Remove deprecated modes from libstd/getopts.rsKevin Cantu-43/+50
2012-08-27Convert core::result to camel caseBrian Anderson-48/+48
2012-08-26minor core/std cleanupBen Blum-2/+2
2012-08-26Camel case the option typeBrian Anderson-21/+21
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-1/+1
2012-08-15Expunge match checksTim Chevalier-1/+2
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-52/+54
2012-08-05Switch alts to use arrowsBrian Anderson-113/+113
2012-08-02Remove modes from map API and replace with regions.Niko Matsakis-1/+1
API is (for now) mostly by value, there are options to use it by reference if you like. Hash and equality functions must be pure and by reference (forward looking to the day when something like send_map becomes the standard map).
2012-08-01Convert ret to returnBrian Anderson-30/+30
2012-07-31std: getopts::match -> matchesBrian Anderson-33/+33
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-1/+1
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-174/+177
#2907.
2012-07-12Get rid of all of the remaining /~s in the code base.Michael Sullivan-4/+4