Commit Graph

1536 Commits

Author SHA1 Message Date
Jeremy Saenz
161c7e7496 Merge pull request #67 from tenpeoplemeet/patch-1
Fixed typo in README
2014-02-15 10:29:44 -08:00
tenpeoplemeet
673f4263fd Fixed typo in README 2014-02-15 12:06:07 +01:00
Jeremy Saenz
8242fd818c Merge pull request #65 from tjarratt/custom-help-printer
Add a way to override the app help printer
2014-02-04 17:01:07 -08:00
Tim Jarratt
58bfabca6d Add a way to override the app help printer
Fixes #64
2014-02-04 08:40:06 -08:00
Jeremy Saenz
c606efc92b Merge pull request #61 from cab/master
Subcommand example used non-existent function
2014-01-08 08:08:44 -08:00
Conner Bryan
1c561d6228 Subcommand example used non-existent function 2014-01-08 02:01:35 -05:00
Greg B
f7c1cd9a11 Add before function to app 2014-01-06 15:06:31 -08:00
Greg B
78d5f0dd40 Unit tests for Before() functionality 2014-01-06 15:06:31 -08:00
Jeremy Saenz
1cb2291894 Merge pull request #57 from fraenkel/optional
Allow to detect optional flags
2014-01-02 08:33:20 -08:00
fraenkel
f88df0aa5a Allow optional flags by asking if its been set/present on the command line 2013-12-18 12:09:16 -06:00
Jeremy Saenz
5b3346951a Merge pull request #53 from kytrinyx/standardize-import
Standardize import statements
2013-12-07 09:58:54 -08:00
Katrina Owen
dde48a57c9 Standardize import statements 2013-12-07 07:10:04 -08:00
Jeremy Saenz
5e1854f702 Merge pull request #52 from kytrinyx/float-flag-doc-typo
Fix typo in godoc for Float64
2013-12-05 06:41:34 -08:00
Katrina Owen
ce737fe01e Fix typo in godoc for Float64 2013-12-05 06:33:55 -08:00
Jeremy Saenz
7be170c042 Added godoc for Float64 2013-12-03 19:24:30 -08:00
Katrina Owen
2ec51afe91 Implement Float64Flag. See #46 2013-12-03 05:42:26 -08:00
Jeremy Saenz
41fe2d8682 Merge pull request #48 from ryansb/stringsliceformat
string slice flag option formatting
2013-12-02 20:08:33 -08:00
Jeremy Saenz
3ac875979d Merge pull request #49 from kytrinyx/short-version
Add shortcut for version flag
2013-12-02 15:02:54 -08:00
Katrina Owen
7d08fb3da5 Add shortcut for version flag 2013-12-02 14:55:24 -08:00
Ryan S. Brown
28cf49a4ca string slice flag option formatting
Used to output:
```
-- 'name'          -name option -name option%!(EXTRA string=Usage text)
```

Now:
```
--name []          `-name option -name option` Usage text
```
2013-12-02 13:29:43 -06:00
Jeremy Saenz
a4d75ab69e Moved some code around in context.go 2013-11-28 07:53:50 -08:00
Jeremy Saenz
01b889e637 Merge branch 'master' of github.com:xyproto/cli into xyproto-master
Conflicts:
	app.go
	context.go
2013-11-28 07:51:31 -08:00
Alexander Rødseth
22a56266c5 Removed the function and data structure for generating man pages 2013-11-24 14:41:42 +01:00
Alexander Rødseth
1bea6dcbf0 Custom type for arguments 2013-11-24 14:40:21 +01:00
Jeremy Saenz
806cdc2890 removed dead test 2013-11-20 17:26:27 -08:00
Jeremy Saenz
ab6f1b7c3c Formatting 2013-11-20 17:25:13 -08:00
Jeremy Saenz
4120b604ec Removed help flag. we no longer need it. 2013-11-20 17:24:37 -08:00
Jared Forsyth
37eef5912e add info about alternate flag names to the readme 2013-11-20 00:10:52 -08:00
Jared Forsyth
dc8a62e0e9 refactor, more robust flag propagation 2013-11-20 01:05:18 -07:00
Jared Forsyth
73e88630a5 fmt 2013-11-18 16:37:59 -07:00
Jared Forsyth
ccb1528bb0 adding multi-named flags 2013-11-18 16:35:23 -07:00
Alexander Rødseth
fbbda7a902 Minor changes 2013-11-15 12:51:53 +01:00
Alexander Rødseth
7050f048d1 Added simple man page support 2013-11-15 12:40:18 +01:00
Alexander Rødseth
f93652a890 Fixed all problems/warnings reported by "go vet" 2013-11-15 11:35:24 +01:00
Alexander Rødseth
30d83a70a7 Added two convenience functions for retrieving arguments 2013-11-15 11:30:45 +01:00
Jeremy Saenz
ea3ef24c9d Update README.md
Added API docs url
2013-11-01 07:41:43 -07:00
Jeremy Saenz
4f38b0cbbf Merge pull request #40 from codegangsta/JMS-39
App.Run() now returns an error if there was one. No more calls to os.Exit()
2013-11-01 07:36:14 -07:00
Jeremy Saenz
b25b7a883c JMS #39: Removed all calls to os.Exit(). 2013-11-01 07:33:39 -07:00
Jeremy Saenz
e6e641143c JMS #39: App.Run returns an error 2013-11-01 07:33:15 -07:00
Jeremy Saenz
0d3c3f4497 Improved documentation 2013-11-01 07:31:37 -07:00
Jeremy Saenz
3c97f95b6a Merge pull request #38 from thesyncim/master
add ability to parse []string types
2013-09-26 15:06:15 -07:00
Thesyncim
ed96efff1b add simple test , fix errors and unused interface SliceFlag 2013-09-24 20:36:01 +01:00
Thesyncim
4d9038a156 add ability to parse []string types 2013-09-24 02:41:31 +01:00
Jeremy Saenz
e8d8047f49 Merge pull request #36 from dam5s/master
Allow for flags being passed in after arguments
2013-09-19 12:52:16 -07:00
Damien Le Berrigaud
5d511c7a8b Allow for flags being passed in after arguments 2013-09-18 10:37:03 -06:00
Jeremy Saenz
e3ea5e29b0 Merge pull request #35 from codegangsta/JMS-34
JMS-34: App.Run() can now be run multiple times.
2013-09-14 16:19:43 -07:00
Jeremy Saenz
e5c31ab592 JMS-34: App.Run() can now be run multiple times.
- Added a method for looking up commands
- Using some logic to make sure default flags are not added more than
  once
2013-09-14 16:10:38 -07:00
Jeremy Saenz
02252ed208 Merge pull request #32 from dam5s/print_usage
Show usage and exit with error whenever arguments parsing fails
2013-09-14 09:58:25 -07:00
Jeremy Saenz
dc056c5f22 Merge pull request #33 from dam5s/flag_tweaks
Flag tweaks
2013-09-12 08:47:12 -07:00
Mike Gehard
1a1d6bd163 Vary flag prefix based on name length 2013-09-09 11:52:12 -07:00